C Programming What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);} None of these. will print garbage value Compilation Error will print Hello World None of these. will print garbage value Compilation Error will print Hello World ANSWER DOWNLOAD EXAMIANS APP
C Programming Which is the only function all C programs must contain? printf() main() getch() start() system() printf() main() getch() start() system() ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i; printf("%d", scanf("%d", &i)); // value 10 is given as input here} None of These 10 1 Garbage Value None of These 10 1 Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} The loop will run infinitely many times. Prints the value of 0 one time only. The program will not enter into the loop. There will be a compilation error reported. A run time error will be generated. The loop will run infinitely many times. Prints the value of 0 one time only. The program will not enter into the loop. There will be a compilation error reported. A run time error will be generated. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int i=5; if(--i){ main(); printf("%d ", i); }} 5 4 3 2 1 None of These Infinite Loop 0 0 0 0 5 4 3 2 1 None of These Infinite Loop 0 0 0 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*p); } Some address will be printed H None of these. Hello Some address will be printed H None of these. Hello ANSWER DOWNLOAD EXAMIANS APP