-->





C notes For Programmers (PART 1) :


1- 

//                   to make a single line comment
/*
                      to make
                      multiline 
                      comment 
*/



2-  
 #include<stdio.h>
                          
                      this line tells the compiler to include information                              about the standard input/output library



3-
   printf() function is not a part of c language ; 
there is no input or output defined in C itself.
 printf is just a useful function from the standard library of functions

4-

5-Learn to convert from while to for loop to get the same results


6-The syntax for creating a constant using #define in the C language is:
                             #define CNAME value
#define CNAME (expression)

CNAME
The name of the constant. Most C programmers define their constant names in uppercase, but it is not a requirement of the C Language.


                          value
The value of the constant.
                        expression
Expression whose value is assigned to the constant. The expression must be enclosed in parentheses if it contains operators.












جديد قسم : C PROGRAMMING

إرسال تعليق