Looking for a Tutor Near You?

Post Learning Requirement »
x

Choose Country Code

x

Direction

x

Ask a Question

x

x
x
x
Hire a Tutor

C Language

Loading...

Published in: C / C++
600 Views

Simplified Concepts And Implementation of C.

Suman / Gurgaon

6 years of teaching experience

Qualification: B.Tech

Teaches: Computer, IT, C / C++, Java And J2EE, Python Programming, MCA Subjects, Networking, Software Testing, Unix/Linux

Contact this Tutor
  1. sizeof(short) > sizeof(long) > sizeof(short) ILP32 systems sizeof(int) sizeof( long) sizeof( long long) integer, long and pointer all are 32 bits long and pointer are 64 bits sizeof(short) sizeof( unsigned short) sizeof(int - sizeof( unsigned int sizeof(long ) - sizeof( unsigned long ) sizeof(long long - sizeof( unsigned long long ) sizeof(short) sizeof( unsigned short) char c c signed unsigned 'b' char range char range Text Files -128 to 127 to 255 127 ASCII 127 E ASCII Binary files Three types are char: signed char unsigned char char 255 is signed or not is implementation/ compiler dependent int i = int i = int i = int i - 340; - > 16 48 8 unsigned long Base is determined by prefixes Prefixs :
  2. ox ox 1-9 hexadecimal octal 034 decial num the digit is count as part of the vaule 10 34 Types are determnined by suffixes int int unsigned unsigned long long unsigned long long long int int int int long 10 34 IOU 34 u I@ULL 3411 char c float f = char *cp 34 strcpy(cp, main() { char f(); CPI 'worldabc") "world" Double quoted string get memory allocated in const strings region . Will be replaced by a pointer to the first letter. print f ("hello world"), will actually get a pointer to h as its argument. -1 1 - > Fasle - > True True
  3. 10 -10 - > True - > True - > True statement if ( expr ) if ( expr ) statements else / * else part */ if( 1) if( if( -1) if( 10) print f ("hello"); print f ("hello"); print f ("hello"); print f ("hello"); if( -101) print f ("hello"); if ( @ ) printf( "hello"); printf( "hello" ) ; int i if ( 1=-11) print f ("hello"); else print f ("world "), i 10 -j + 30 i if ( print f ("hello"); else print f ("world "); if ( print f ("hello"); else print f ("world "), int i j=ll; if ( 1) print f ("hello"); if ( @) print f ("hello"); if (O) if (j) print f ("hello"); else
  4. print f ("world if (j) print f ("hello"); else print f ("world "); if ( @) printf( "hello"); print f ("world \n"); if ( @) { printf( "hello"); print f ("world \n"); switch(3) int i case 2: int case 3: int case default : print f ("hello %d fl(); print f ("world %d", k; print f ("char print f ("default") i); j break; ) ; break; break switch(expr) case 10: print f ("hello\n"); switch(expr) case int i; switch(expr) default while( ) while(l) for( for (expl; print f ("hello\n"); //ERROR // infinite //Correct.. infinite exp3) // infinite
  5. int ml, m2, m3 typedef keyword int exiting type Marks; // New name for exiting type int New name typedef int Marks ml, m2, m3; // Not an object. can't initialize. . typedef int Marksl, Marks2, typedef Marks New marks; Marks3; // New names for exiting type int
  6. N/A