The operator > and < are meaningful when used with pointers, if The pointers point to structure of similar data type. The pointers point to elements of the same array. The pointers point to data of similar type. None of these. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=1, j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; }} GOOD BAD GOOD Compiler Error None of These TRUE ANSWER : ? YOUR ANSWER : ?
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 : ?
Consider the following type definition.typedef char x[10];x myArray[5];What will sizeof(myArray) be ? (Assume one character occupies 1 byte) 10 50 None of these 30 15 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is a complete function? None of these int funct(int x) { return x=x+1; } void funct(int) { printf(“Hello"); } void funct(x) { printf(“Hello"); } int funct(); TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 4 5 5 5 5 2 4 4 2 5 5 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=3; switch(i) { default: printf("zero"); case 1: printf("one"); break; case 2: printf("two"); break; case 3: printf("three"); break; }} three Error None of These zero TRUE ANSWER : ? YOUR ANSWER : ?
Which of following is not a valid name for a C variable? Both A and B None of these Examians Exam_veda Exam veda TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following piece of code?for(i = 0; i<10; i++);printf("%d", i); 10 0123456789 Infinite loop 0 Syntax error TRUE ANSWER : ? YOUR ANSWER : ?
Consider the following code:void main(){ int a[5] = {6,8,3,9,0}, i=0; if(i != 0) { break; printf("%d", a[i]); } else printf("%d", a[i++]);}What is the output of the above program? Syntax error Runtime error 6 8 No output TRUE ANSWER : ? YOUR ANSWER : ?