main()
{
int i=5,j=10;
i=i&=j&&10;
printf("%d %d",i,j);
}
Answer / susie
Answer :
1 10
Explanation:
The expression can be written as i=(i&=(j&&10)); The inner
expression (j&&10) evaluates to 1 because j==10. i is 5. i =
5&1 is 1. Hence the result.
| Is This Answer Correct ? | 12 Yes | 4 No |
what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }
main() { char c; int i = 456; clrscr(); c = i; printf("%d", c); } a. 456 b. -456 c. random number d. none of the above
#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); }
#define DIM( array, type) sizeof(array)/sizeof(type) main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr, int)); }
Write a C program to add two numbers before the main function is called.
main() { register int a=2; printf("Address of a = %d",&a); printf("Value of a = %d",a); }
write a c-program to find gcd using recursive functions
What is the hidden bug with the following statement? assert(val++ != 0);
How to palindrom string in c language?
How we will connect multiple client ? (without using fork,thread)
what is brs test reply me email me kashifabbas514@gmail.com
1) int i=5; j=i++ + i++ + i++; printf("%d",j);This code gives the answer 15.But if we replace the value of the j then anser is different?why? 2)int i=5; printf("%d",i++ + i++ + i++); this givs 18.