Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 4 4 2 5 5 2 4 5 5 5 5 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i = -1; +i; printf("i = %d, +i = %d", i, +i);} i = -1, +i = 1 i = -1, +i = -1 i = 1, +i = 1 None of These TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=-1, j=-1, k=0, l=2, m; m = i++ && j++ && k++ || l++; printf("%d %d %d %d %d", i, j, k, l, m);} 0 0 1 3 1 0 0 0 2 1 0 0 1 3 0 0 0 1 2 0 TRUE ANSWER : ? YOUR ANSWER : ?
String concatenation means - Merging two strings. Combining two strings. Comparing the two strings to define the larger one. Extracting a substring out of a string. Partitioning the string into two strings. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#define int charvoid main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));} Compiler Error sizeof(i)=1 None of These sizeof(i)=2 TRUE ANSWER : ? YOUR ANSWER : ?
"My salary was increased by 15%" Select the statement, which will EXACTLY reproduce the line of text above. printf("My salary was increased by 15'%'!"); printf("My salary was increased by 15%!"); printf("My salary was increased by 15/%!"); printf("My salary was increased by 15%%!"); 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 ERROR RED WHITE BLUE RED WHITE BLUE ERROR RED TRUE ANSWER : ? YOUR ANSWER : ?
The declarationint (*p) [5];means The same as int *p[ p is a pointer to a 5 elements integer array. p is one dimensional array of size 5, of pointers to integers. None of these. TRUE ANSWER : ? YOUR ANSWER : ?
What is the output of the following program?#include<stdio.h>int c[10] = {1,2,3,4,5,6,7,8,9,10}; main(){ int a, b=0; for(a=0;a<10;++a) if(c[a]%2 == 1) b+=c[a]; printf("%d", b);} 30 None of these 25 24 20 TRUE ANSWER : ? YOUR ANSWER : ?