What will be the output of given program?#include<stdio.h>void main(){int a=1;if("%d=hello", a);} 1 complier error 0 no error no output 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");} Unequal Error Equal None of these. TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the given program?#include<stdio.h>void main(){ int i=10; printf("i=%d", i); { int i=20; printf("i=%d", i); i++; printf("i=%d", i); } printf("i=%d", i);} 10 20 21 20 10 20 21 21 10 10 11 11 10 20 21 10 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 Infinite loop 0 0123456789 Syntax error TRUE ANSWER : ? YOUR ANSWER : ?
C programs are converted into machine language with the help of A compiler An operating system An Editor None of these. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#define prod(a,b) a*bvoid main(){ int x=3, y=4; printf("%d", prod(x+2, y-1));} 10 15 11 12 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int c = - -2; printf("c=%d", c);} Error 2 1 -2 TRUE ANSWER : ? YOUR ANSWER : ?
Comment on the following?const int *ptr; We cannot change the value pointed by ptr. Both of the above We can change the pointer as well as the value pointed by it. We cannot change the pointer ptr itself. 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 : ?
Determine Output:#include<stdio.h>void main(){ register i=5; char j[]= "hello"; printf("%s %d", j, i);} hello 5 Error None of These hello garbage value TRUE ANSWER : ? YOUR ANSWER : ?