c basics interview questions and answers paper 323 - skillgunNote: Paper virtual numbers may be different from actual paper numbers . In the page numbers section website displaying virtual numbers .
float data type with example in c:
What is the output of below C program?
float res = 12/5;
float res = (float)12/5; //since 12 is converted to float,
//total expression will yield float result that is 2.400000
What is the use of malloc function in c?
It is used to remove memory of a pointer.
It is used to allocate memory for a function.
It is used to allocate memory for a pointer.
What is the use of free function in c?
It is used to free the memory allocated by malloc.
It is used to reallocate memory for a pointer.
Back To Top