Null pointers do not point to anything.Null can be intialised with Null value
Q2 . What are structures in C?
SOLUTION
It is a complex data type inside which multiple simple variables can be specified and stored under a common memory and can later be accessed using a structure varaible.Example
struct test{int mark1;}
now to create a structure variable
struct test t
Q3 . What are Unions in C?
SOLUTION
Unions are like structure but structures have indvidual memory allocation for all its members where as unions have the memory allocated for its largest member.
Q4 . What is the use of typedef in C?
SOLUTION
Typedef is used to give alias or short names for data types.
typedef long int a
instead of long int we can use a
Q5 . what are the standard input and output functions in C?
SOLUTION
some of the standard input functions getc,scanf and output functions are printf,putc.
Q6 . What are the file manipulation techniques in C?
SOLUTION
Files are nothing but a series of bytes of data.
we can open a file using fopen()
we can close the file using fclose()
fscanf() reads data
fprintf() writes data
Q7 . what are macros in C?
SOLUTION
Macros are named parts of code.we can define it using #define.#define pi 3.14
Q8 . what is Type Casting in C?
SOLUTION
Typecasting is a way of changing the a variable from a data type to the other
Q9 . Give an example of Type Casting?
SOLUTION
a=int(d)+c;Here d gets typecasted to the integer data type.
Q10 . Explain error handling in C?
SOLUTION
C does not have exception handling or handling like some high level languages like java.But we can display some error messages using perror()