-->

Which among the following is right?

a. sizeof(struct stemp*) > sizeof(union utemp*) > sizeof(char *) b. sizeof(struct stemp*) <…

Comment on the output of following C program?

#include <stdio.h> main() {      int a = 1;      printf("size of a is %d, ", sizeof(++a…

What will be the size of the following structure?

#include <stdio.h> struct temp {      int a[10];      char p; }; a. 5 b. 11 c. 41 d. 44 ANSWER: 44

Which among the following is never possible in C when members in a structure are same as that in a union?

    //Let P be a structure     //Let Q be a union a. sizeof(P) is greater than sizeof(Q) b. sizeof(P) …

Which among the following is never possible in C when members are different in a structure and union?

    //Let P be a structure     //Let Q be a union a. sizeof(P) is greater than sizeof(Q) b. sizeof(P) …

Comment on the output of this C code?

#include <stdio.h> #include "test.h" #include "test.h" int main() {       //so…

How is search done in #include and #include "somelibrary.h" according to C standard?

a. When former is used, current directory is searched and when latter is used, standard directory i…

What would happen if you create a file stdio.h and use #include "stdio.h" ?

a. The predefined library file will be selected b. The user-defined library file will be selected c. …

Which directory the compiler first looks for the file when using #include?

a. Current directory where program is saved b. C:COMPILERINCLUDE c. S:SOURCEHEADERS d. Both (b) and (c…

What is the sequence for preprocessor to look for the file within <> ?

a. The predefined location then the current directory b. The current directory then the predefined l…

What do the following declaration signify?

char **argv; a. argv is a pointer to pointer. b. argv is a pointer to a char pointer. c. argv is a fun…

What is stderr?

a. standard error b. standard error types c. standard error streams d. standard error definitions ANSWE…

Which standard library function will you use to find the last occurance of a character in a string in C?

a. strnchar() b. strchar() c. strrchar() d. strrchr() ANSWER: strrchr()

Input/output function prototypes and macros are defined in which header file?

a. conio.h b. stdlib.h c. stdio.h d. dos.h ANSWER: stdio.h

What will the function rewind() do?

a. Reposition the file pointer to a character reverse. b. Reposition the file pointer stream to end …

What do the following declaration signify?

int (*pf)(); a. pf is a pointer to function. b. pf is a function pointer. c. pf is a pointer to a func…

What do the following declaration signify?

char *arr[10]; a. arr is a array of 10 character pointers. b. arr is a array of function pointer. c. a…

Specify the 2 library functions to dynamically allocate memory?

a. malloc() and memalloc() b. alloc() and memalloc() c. malloc() and calloc() d. memalloc() and farall…

How will you free the memory allocated by the following program?

#include<stdio.h> #include<stdlib.h> #define MAXROW 3 #define MAXCOL 4 int main() {      int …

What is x in the following program?

#include<stdio.h> int main() {      typedef char (*(*arrfptr[3])())[10];      arrfptr x;      retu…