Skip to main content

C Programming for Beginners #1 (Getting started)


C Programming is easy to learn there is a close analogy between learning English language and learning C language.
We will start from the basic concept of C like which alphabets,digits,special symbols we can use.


  1. Alphabets - A,B.......Y,Z
  2. Digits - 0,1,2,3,4,5,6,7,8,9
  3. Special symbols - ~ ' ! @ # % ^ & * ( ) _ - + = | \ { } [ ] : ; " ` < > , . ? / $

In C Programming we typically do lots of calculation the result of these calculation is stored in the computer memory it's similar to human memory so all the result in C is in memory location

For now just just keep in mind that in C there are two types of constant:-
  1. Primary constant
  2. Secondary constant

Primary constant:-
  1. Integer constant
  2. Real constant
  3. Character constant

Secondary constant:-

  1. Array
  2. Pointer
  3. Structure
  4. Union
  5. Enum.Etc

I'll cover all this topic and using this we are going to learn C programming.

C keywords:-
C keyword are the word whose meaning are already defined in C compiler .There are in all 32 C Keyword as follows:-
auto                       double                           int                              struct             
break                     else                                long                           switch
char                       if                                    register                       typedef        
case                       enum                              return                         union
const                     extern                             short                           unsigned
continue                float                                signed                        void
default                   for                                  sizeof                          volatile
do                          goto                                static                           while

This keyword cannot be used as C variables if we do so we are trying to assign a new meaning to keyword which is not allowed.
Note that different compilers provide their own keyword apart from one mentioned.

Comments

Popular posts from this blog

Android O (Android Operating system)

There are many kind of changes and improvements in this new version of Android OS. Increased Ability of the mobile:- aptX bluetooth streaming :-   High quality audio codec is supported for streaming to bluetooth Headsets and Speakers Adaptive icons give devs and OEMs easy shape masks, extra effects :-  "an OEM like Samsung or HTC will provide a unifying mask, which will allow developers to integrate almost any existing app icon into the broader user interface with minimal effort, and no extra graphics work on the icon itself." Neighborhood Aware Networking (NAN) mode for WiFi :-  "You can think about NAN as a combination of WiFi Direct and Nearby. Two hypothetical phones with NAN could find each other and connect without any additional apps or configuration, allowing them to share data at high speeds." Picture-in-picture video for all devices and new windowing features :- "The gist is that when watching video on Android O, you'll be able to shr...

C Programming #8 (Case Control Instruction)

In Programming we come across some situations where we have to choose from number of alternatives and choice should be specific to condition so the control statement that allow us to make a decision from number of choice is called as switch or we can say switch-case as they are used together. The switch statement looks like : switch (integer expression) { case constant 1: do this; case constant 2: do this; case constant 3: do this; default: do this; } In these case do this is the command statement that is to be followed when case is satisfied Example: #include<stdio.h> int main() { int i=2; switch(i) { case 1: printf("I am in case 1\n"); case 2: printf("I am in case 2\n"); case 3: printf("I am in case 3\n"); default: printf("I am in default"); } return 0; } Output of the program will be : I am in case 2 I am in case 3 I am in default But this is not the output we needed this program should give us...