150 likes | 171 Views
In the event that you are new and need to make your profession in Development, C is a decent decision to begin your programming Career.If you know C, you won't just know how your program functions in any case, you will probably make a model on how a PC functions.
E N D
C PROGRAMMING CLASSES IN PUNE by Cncwebworld https://cncwebworld.com/pune/c-programming-institute
Introduction • C is a high-level language. • Writing a C code. {editors like gedit, vi} • Compiling a C code. {gcc –c test.c –o test} • Executing the object code. {./test} https://cncwebworld.com/pune/c-programming-institute
Some more basics • Keywords • char, static, if , while, return ..................... Total= about 32 • Data Types • int , char, float ...………..….. Some more later • Arithmetic Operators • + (Plus), - (Minus), * (Multiplication), /(Division) ……….………. Some more later https://cncwebworld.com/pune/c-programming-institute
My first C program! #include <stdio.h> // program prints hello world intmain() { printf ("Hello world!"); return0; } Output: Hello world! https://cncwebworld.com/pune/c-programming-institute
Example 1 #include <stdio.h> // program prints a number of type int intmain() { int number = 4; printf (“Number is %d”, number); return0; } Output: Number is 4 https://cncwebworld.com/pune/c-programming-institute
Example 2 #include <stdio.h> // program reads and prints the same thing intmain() { int number ; printf (“ Enter a Number: ”); scanf (“%d”, &number); printf (“Number is %d\n”, number); return0; } Output : Enter a number: 4 Number is 4 https://cncwebworld.com/pune/c-programming-institute
more and more #include <stdio.h> int main() { /* this program adds two numbers */ int a = 4; //first number int b = 5; //second number int answer = 0; //result answer = a + b; } https://cncwebworld.com/pune/c-programming-institute
Note Errors Compilation Compiler generally gives the line number at which the error is present. Run time C programs are sequential making the debugging easier. https://cncwebworld.com/pune/c-programming-institute
COURSE STRUCTURE https://cncwebworld.com/pune/c-programming-institute
Syllabus • Introduction • History of C Language • C - Program Structure • C-Identifier • C-keyword • Command line argument • How to install code block and how to create project https://cncwebworld.com/pune/c-programming-institute
Contd… • Preprocessor in C • #include • #define • #undef • #ifdef • #if • #else • #elif • #endif https://cncwebworld.com/pune/c-programming-institute
Contd… • Library in C • stdio .h • math.h • time.h • string .h • stdlib .h • Input/Output Function • printf • scanf https://cncwebworld.com/pune/c-programming-institute
Operator Precedence • Operators • Arithmetic Operators • Relational Operators • Logical Operators • Bitwise Operators • Assignment Operators • Conditional and turnery operator • Size of operator https://cncwebworld.com/pune/c-programming-institute
Decision Making Statement • if statement • if...else statement • nested if statements • If statement with logical operator • switch statement https://cncwebworld.com/pune/c-programming-institute
THANK YOU https://cncwebworld.com/pune/c-programming-institute