What is the output of the following statements?int i = 0;printf("%d %d", i, i++); None of these 1 1 1 0 0 1 0 0 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program ?#includevoid main(){ float arr[] = {12.4, 2.3, 4.5, 6.7}; printf("%d", sizeof(arr)/sizeof(arr[0]));} 4 7 5 6 None of these TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program ?#include<stdio.h>#include<string.h>void main(){ char str1[20] = "Hello", str2[20] = " World"; printf("%s", strcpy(str2, strcat(str1, str2)));} World Hello None of these Hello World WorldHello TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following code fragment?void main(){ printf("%x",-1<<4);} fff4 fff1 fff3 fff2 fff0 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char *p; p="Hello"; printf("%c", *&*p);} None of These Hello Some Address will be printed H TRUE ANSWER : ? YOUR ANSWER : ?
Choose the correct statement.I. The scope of a macro definition need not be the entire program.II. The scope of a macro definition extends from the point of definition to the end of the file.III. New line is a macro definition delimiter.IV. A macro definition may go beyond a line. II and III I and II I, II, III and IV II, III and IV I, II and III TRUE ANSWER : ? YOUR ANSWER : ?
What will be the value of i and j after execution of following program?#include<stdio.h>void main(){int i, j;for(i=0,j=0;i<10,j<20;i++,j++){printf("i=%d %t j=%d", i, j); }} 10 10 20 20 Run time error 10 20 TRUE ANSWER : ? YOUR ANSWER : ?
What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) The commas should be semicolons. The increment should always be ++k . There should be a semicolon at the end of the statement. The variable k can’t be initialized. The variable must always be the letter i when using a for loop. TRUE ANSWER : ? YOUR ANSWER : ?
What is the maximum number of dimensions an array in C may have? 50 2 Theoratically no limit. The only practical limits are memory size and compilers. 20 8 TRUE ANSWER : ? YOUR ANSWER : ?
Which command is used to skip the rest of a loop and carry on from the top of the loop again? None of these continue break resume skip TRUE ANSWER : ? YOUR ANSWER : ?