Determine output:void main(){ int i=0, j=1, k=2, m; m = i++ || j++ || k++; printf("%d %d %d %d", m, i, j, k);} 0 1 2 2 0 1 2 3 None of these 1 1 2 2 1 1 2 3 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is a complete function? int funct(int x) { return x=x+1; } void funct(int) { printf(“Hello"); } int funct(); void funct(x) { printf(“Hello"); } None of these TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program?void main(){ char str1[] = "abcd"; char str2[] = "abcd"; if(str1==str2) printf("Equal"); else printf("Unequal");} Error Equal Unequal None of these. TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following comments about the ++ operator are correct? All of these It associates from the right It is a unary operator The operand can come before or after the operator It cannot be applied to an expression TRUE ANSWER : ? YOUR ANSWER : ?
Choose the best answer.Prior to using a pointer variable It should be declared. It should be both declared and initialized. It should be initialized. None of these. TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes?#includevoid main(){ int a[3][4] = {1, 2, 3, 4, 4, 3, 2, 1, 7, 8, 9, 0}; printf("%u, %u", a+1, &a+1);} 65474, 65476 65480, 65496 65480, 65488 None of these 65474, 65488 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 45545 54554 55445 54544 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=0, j=0; if(i && j++) printf("%d..%d", i++, j); printf("%d..%d", i, j);} 1..1 0..0 0..1 1..0 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the given program?#include<stdio.h>void main(){int a=11,b=5;if(a=5) b++;printf("%d %d", ++a, b++);} 6 6 5 6 11 6 12 7 6 7 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program ?#include<stdio.h>void main(){ int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m);} 3, 2, 15 2, 3, 20 2, 1, 15 1, 2, 5 TRUE ANSWER : ? YOUR ANSWER : ?