What will be the output of given program?#include<stdio.h>void main(){ int i=1, j=-1; if((printf("%d", i)) < (printf("%d", j))) printf("%d", i); else printf("%d", j);} 1 1 -1 -1 -1 1 -1 1 complier error 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 : ?
Determine Output:void main(){ int c = - -2; printf("c=%d", c);} 2 Error 1 -2 TRUE ANSWER : ? YOUR ANSWER : ?
What number would be shown on the screen after the following statements of C are executed?char ch; int i; ch = 'G'; i = ch-'A';printf("%d", i); 9 7 5 8 6 TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program. void main() { int i=01289; printf("%d", i); } Syntax error 0713 1289 0289 713 TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program.#include<stdio.h>void main(){ int y=10; if(y++>9 && y++!=10 && y++>11) printf("%d", y); else printf("%d", y);} 12 Compilation error 14 11 13 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#define clrscr() 100void main(){ clrscr(); printf("%d", clrscr());} Error 1 100 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following function is used to find the first occurrence of a given string in another string? None of these strchr() strnset() strrchr() strstr() TRUE ANSWER : ? YOUR ANSWER : ?