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...

Artificial Intelligence

Artificial Intelligence (AI) in Engineering Artificial Intelligence (AI) is the science of using a computer (program) to help think of solutions to solve a particular problem. This is especially very useful in the field of Engineering; due to the need of constantly trying to automate every process for improved efficiency. Every engineering field has benefitted from the use of AI, some more than others. Computer Engineering Computer Engineering is the primary field in which AI is used. Many companies are preferring AI programming over traditional programming as it allows their programs to be long lasting and avoids the constant need to update. Personal Assistant applications like Google Now, Siri and cortana heavily rely on the use of AI for predicting user behavior and voice recognition. Other application include video games, Purchase prediction, Smart cars, Fraud detection, Security services etc. Instrumentation Engineering Instrumentation Engineering primar...

C Programming #6 (Loop Control Instruction)

In C Programming if we want to repeat some statements here we make the use of loops. There are three methods by which we can repeat part of program. Using for statement Using a while statement Using a do-while statement The while loop: It will repeat the program until the condition in while loop become false. Example: /*Calculation of simple interest for 3 sets of p, n and r*/ #include<stdio.h> int main() { int p,n,count; float r,si; count=1; while(count<=3) { printf("\nEnter values of p,n and r"); scanf("%d%d%f",&p,&n,&r); si=p*n*r/100; printf("Simple interest = Rs. %\nf",si); count=count+1; } return 0; } Here this program while loop has the condition to repeat the program 3 times. As in while loop at the end count is increased by 1 every time it execute and when it reaches to 3 control comes out of program and the program terminates. Tips and Traps As I mentioned in m...