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 |
What is the output for the following program main() { int arr2D[3][3]; printf("%d\n", ((arr2D==* arr2D)&&(* arr2D == arr2D[0])) ); }
main() { char *p; p="%d\n"; p++; p++; printf(p-2,300); }
main() { char *p = "hello world"; p[0] = 'H'; printf("%s", p); } a. Runtime error. b. “Hello world” c. Compile error d. “hello world”
How can u say that a given point is in a triangle? 1. with the co-ordinates of the 3 vertices specified. 2. with only the co-ordinates of the top vertex given.
#include<stdio.h> main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d..%d",*p,*q); }
main( ) { int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}}; printf(“%u %u %u %d \n”,a,*a,**a,***a); printf(“%u %u %u %d \n”,a+1,*a+1,**a+1,***a+1); }
How to read a directory in a C program?
typedef struct error{int warning, error, exception;}error; main() { error g1; g1.error =1; printf("%d",g1.error); }
void ( * abc( int, void ( *def) () ) ) ();
main() { while (strcmp(“some”,”some\0”)) printf(“Strings are not equal\n”); }
main() { unsigned int i=65000; while(i++!=0); printf("%d",i); }
What is the main difference between STRUCTURE and UNION?