Find the output of the following program.#define INC(X) X++void main(){ int x=4; printf("%d", INC(x++));} Error 6 4 5 TRUE ANSWER : ? YOUR ANSWER : ?
short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code? 12 24 6 It will not compile because not enough initializers are given 7 TRUE ANSWER : ? YOUR ANSWER : ?
String concatenation means - Combining two strings. Extracting a substring out of a string. Comparing the two strings to define the larger one. Partitioning the string into two strings. Merging two strings. TRUE ANSWER : ? YOUR ANSWER : ?
The type of the controlling expression of a switch statement cannot be of the type ........ long int float char short TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:void main(){ int const *p=5; printf("%d", ++(*p));} Compiler Error Garbage Value 5 6 TRUE ANSWER : ? YOUR ANSWER : ?
A C variable cannot start with A number An alphabet Both of the above A special symbol other than underscore TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#include<stdio.h>void main(){ char s[]={'a','b','c','n','c','\0'}; char *p, *str, *str1; p=&s[3]; str=p; str1=s; printf("%c", ++*p + ++*str1-32);} N None of These P M TRUE ANSWER : ? YOUR ANSWER : ?
What will be the following code's output if choice = 'R'?switch(choice){ case 'R' : printf("RED"); case 'W' : printf("WHITE"); case 'B' : printf("BLUE"); default : printf("ERROR");break;} RED ERROR RED ERROR RED WHITE BLUE ERROR RED WHITE BLUE TRUE ANSWER : ? YOUR ANSWER : ?
Determine the Final Output:void main(){ printf("\nab"); printf("\bsi"); printf("\rha");} hai asiha absiha haasi TRUE ANSWER : ? YOUR ANSWER : ?