main()
{
int i=5;
printf(“%d”,i=++i ==6);
}
Answer / susie
Answer :
1
Explanation:
The expression can be treated as i = (++i==6), because == is
of higher precedence than = operator. In the inner
expression, ++i is equal to 6 yielding true(1). Hence the
result.
| Is This Answer Correct ? | 22 Yes | 5 No |
Finding a number which was log of base 2
main() { char a[4]="HELLO"; printf("%s",a); }
Write a program to check whether the number is prime and also check if it there i n fibonacci series, then return true otherwise return false
main() { printf("%d, %d", sizeof('c'), sizeof(100)); } a. 2, 2 b. 2, 100 c. 4, 100 d. 4, 4
18 Answers HCL, IBM, Infosys, LG Soft, Satyam,
#include<conio.h> main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); }
#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts("NULL"); else if(FALSE) puts("TRUE"); else puts("FALSE"); }
Program to Delete an element from a doubly linked list.
4 Answers College School Exams Tests, Infosys,
main ( ) { static char *s[ ] = {“black”, “white”, “yellow”, “violet”}; char **ptr[ ] = {s+3, s+2, s+1, s}, ***p; p = ptr; **++p; printf(“%s”,*--*++p + 3); }
What is the main difference between STRUCTURE and UNION?
main() { extern out; printf("%d", out); } int out=100;
String copy logic in one line.
main() { char string[]="Hello World"; display(string); } void display(char *string) { printf("%s",string); }