C Programming What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 2 1 1 2 1 1 2 2 2 1 1 2 1 1 2 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming C was primarily developed as Data processing language System programming language General purpose language None of these Data processing language System programming language General purpose language None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} Segmentation fault/runtime crash Compiler time error 10 Undefined behavior Segmentation fault/runtime crash Compiler time error 10 Undefined behavior ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is more appropriate for reading in a multi-word string? None of these printf() gets() puts() scanf() None of these printf() gets() puts() scanf() ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int c = - -2; printf("c=%d", c);} Error -2 1 2 Error -2 1 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int i=5; if(--i){ main(); printf("%d ", i); }} None of These Infinite Loop 0 0 0 0 5 4 3 2 1 None of These Infinite Loop 0 0 0 0 5 4 3 2 1 ANSWER DOWNLOAD EXAMIANS APP