What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*p); } H Some address will be printed Hello None of these. TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following function is used to find the first occurrence of a given string in another string? strrchr() None of these strnset() strchr() strstr() TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=0; for(;i++;printf("%d", i)); printf("%d", i);} Error 11 1 12 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ static int i=i++, j=j++, k=k++; printf("%d %d %d", i, j, k);} 0 0 0 Error garbage values 1 1 1 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. 8 20 TRUE ANSWER : ? YOUR ANSWER : ?
The operator > and < are meaningful when used with pointers, if The pointers point to elements of the same array. The pointers point to structure of similar data type. None of these. The pointers point to data of similar type. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ float me = 1.1; double you = 1.1; if(me==you) printf("I hate Examveda"); else printf("I love Examveda");} Error I hate Examians None of These I love Examians TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ struct xx { int x=3; char name[] = "hello"; }; struct xx *s = malloc(sizeof(struct xx)); printf("%d", s->x); printf("%s", s->name); } None of these 3 hello Compiler Error Linking error TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ printf("%p", main);} Error make an infinite loop Some address will be printed None of These TRUE ANSWER : ? YOUR ANSWER : ?
What will be the final value of the digit?void main(){ int digit = 0; for( ; digit <= 9; ) digit++; digit *= 2; --digit;} -1 20 19 16 17 TRUE ANSWER : ? YOUR ANSWER : ?