complete_C - 1. C Language:- C Language is standardized...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1. C Language:- C Language is standardized programming language which is developed in 1970 for use of UNIX operating system. Mainly we use C language for developing system softwares. 2. Satic:- static is keyword. if u keep static to any variable it will retains the value between function calls. static variables are initialized to zero by default. if assign any variable as global we can access that from any where but if u keep that variable as static we can not access from the out side. 3. Storage Classes:- auto, register, satic, extern are the storage classes in c programming language. auto:- auto is the default storage class for the only local variables it is not aplicable for the global variables. register:- the variable which is assigned as register it will stored in CPU register. we mainly use for quick access for that variable. we can not apply any operator operations on it. static:- we disscoused it above. void means function does not return any thing and it does not take any thing extern:- it is used to access external file variables or function, if u initialize variable as extern we can access it from any were 4. Definition:- Defining the variable or functions where the actual memory is allocated Declaration:- giving reference to the variable or functions is called to the declaration Example auto_c.c 5. precompiled headerfiles:- most of the compilers are using Precompiled header files, it means containg all header files in the nested formate. we can keep header files in the nested formate. 6.printf("%d"):- it will print garbage value 7. stmalloc():- allocating required number of bytes in memory at run time. syntax: void * malloc (size_t size). calloc():- allocating memory to block of array elements with specified size. syntax: void * calloc (size_t numbyte, size_t size); 8. Sprintf():- write formatted data to a string. there is a problem with data overflow. for that asprintf() has introduced. ex:- sprintf_C.c 9. reduceing final size of the executable file:- remove dead code from the program and use functions and dynamically alocate the memory. 10.Macro;- macro means it is a rule or it specifies how the input should be advantage is that it saves memory and time.because with the use of macros the compilation will become faster ex:- macros.c 11.String Vs character array:- String has static storage duration where as character array not contain it.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
12. By using AND operator we can find particular bit is on or off. 1. By using AND operator we can turn off a bit ex:-some_int = some_int & ~KBit24; 2. By using OR operator we can turn on a bit ex:- some_int = some_int | ~KBit24; 13.enum{a0=1,a1,a2,a3} means a1=1, a2=2; 14.perror():- use to print the error messages. it won't slove the problem it give the message only. 15. const char* p :- character pointer 'p' is constant we can not change the value
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 19

complete_C - 1. C Language:- C Language is standardized...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online