When a function is recursively called all the automatic variables are stored in a .......... Register Linked list Array Stack Queue TRUE ANSWER : ? YOUR ANSWER : ?
Let x be an array. Which of the following operations are illegal?I. ++xII. x+1III. x++IV. x*2 III and IV II and III I, III and IV I and II I, II and III TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char string[]="Hello World"; display(string);}void display(char *string){ printf("%s", string);} None of These will print Hello World Can't Say Compiler Error TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program.void main(){ int i=10; /* assume address of i is 0x1234ABCD */ int *ip=&i; int **ipp=&&i; printf("%x,%x,%x", &i, ip, *ipp); } Runtime error Syntax error 0x1234ABCD, 0x1234ABCD, 10 0x1234ABCD, 10, 10 0x1234ABCD, 0x1234ABCD, 0x1234ABCD TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program?#include<stdio.h>void main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} Undefined behavior Segmentation fault/runtime crash 10 Compiler time error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program code?#include<stdio.h>#define a 10void main(){ #define a 50 printf("%d", a);} 10 50 Compiler Error None of These TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:void main(){ int const *p=5; printf("%d", ++(*p));} Garbage Value Compiler Error 5 6 TRUE ANSWER : ? YOUR ANSWER : ?
Choose the correct output for the following program.#include<stdio.h>void main(){ int a=10, b=11, c=13, d; d = (a=c, b+=a, c=a+b+c); printf("%d %d %d %d", d, a, b, c);} 50, 13, 24, 13 50, 13, 24, 50 13, 13, 24, 13 50, 13, 11, 13 13, 10, 24, 50 TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program. void main() { int i=01289; printf("%d", i); } 1289 Syntax error 713 0289 0713 TRUE ANSWER : ? YOUR ANSWER : ?
The address operator &, cannot act on Local variables Arithmetic expressions Members of a structure R-values Both of the above TRUE ANSWER : ? YOUR ANSWER : ?