Posts

c-programming-interview-questions

Image
Q1. What are the basic Datatypes supported in C Programming Language? Ans : The Datatypes in C Language are broadly classified into 4 categories. They are as follows: Basic Datatypes Derived Datatypes Enumerated Datatypes Void Datatypes The Basic Datatypes supported in C Language are as follows: Datatype Name Datatype Size Datatype Range short 1 byte -128 to 127 unsigned short 1 byte 0 to 255 char 1 byte -128 to 127 unsigned char 1 byte 0 to 255 int 2 bytes -32,768 to 32,767 unsigned int 2 bytes 0 to 65,535 long 4 bytes -2,147,483,648 to 2,147,483,647 unsigned long 4 bytes 0 to 4,294,967,295 float 4 bytes 3.4E-38 to 3.4E+38 double 8 bytes 1.7E-308 to 1.7E+308 long double 10 bytes 3.4E-4932 to 1.1E+4932 Q2. What do you mean by Dangling Pointer Variable in C Programming? Ans : A Pointer in C Programming is used to point the memory location of an existing variable. In case if that particular variable is deleted and the Pointer is still pointing to the sa...