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 |
How to read a directory in a C program?
Write a Program that Inputs 10 Numbers in an Array and Show the Maximum Number
write a c-program to display the time using FOR loop
To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']
{ int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
main() { int x=5; clrscr(); for(;x<= 0;x--) { printf("x=%d ", x--); } } a. 5, 3, 1 b. 5, 2, 1, c. 5, 3, 1, -1, 3 d. –3, -1, 1, 3, 5
why the range of an unsigned integer is double almost than the signed integer.
void main() { int c; c=printf("Hello world"); printf("\n%d",c); }
main() { int i=3; switch(i) { default:printf("zero"); case 1: printf("one"); break; case 2:printf("two"); break; case 3: printf("three"); break; } }
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };
Write, efficient code for extracting unique elements from a sorted list of array. e.g. (1, 1, 3, 3, 3, 5, 5, 5, 9, 9, 9, 9) -> (1, 3, 5, 9).
13 Answers Intel, Microsoft, TCS,
void main() { void *v; int integer=2; int *i=&integer; v=i; printf("%d",(int*)*v); }