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 |
Write a program to implement the motion of a bouncing ball using a downward gravitational force and a ground-plane friction force. Initially the ball is to be projected in to space with a given velocity vector
main(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); }
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
main() { int i=0; for(;i++;printf("%d",i)) ; printf("%d",i); }
main( ) { char *q; int j; for (j=0; j<3; j++) scanf(“%s” ,(q+j)); for (j=0; j<3; j++) printf(“%c” ,*(q+j)); for (j=0; j<3; j++) printf(“%s” ,(q+j)); }
main() { int c[ ]={2.8,3.4,4,6.7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf(" %d ",*c); ++q; } for(j=0;j<5;j++){ printf(" %d ",*p); ++p; } }
plz tell me the solution.......... in c language program guess any one number from 1 to 50 and tell that number within 8 asking question in yes or no...............
const int perplexed = 2; #define perplexed 3 main() { #ifdef perplexed #undef perplexed #define perplexed 4 #endif printf("%d",perplexed); } a. 0 b. 2 c. 4 d. none of the above
main() { char *p="hai friends",*p1; p1=p; while(*p!='\0') ++*p++; printf("%s %s",p,p1); }
void main() { int c; c=printf("Hello world"); printf("\n%d",c); }
int i,j; for(i=0;i<=10;i++) { j+=5; assert(i<5); }
#define f(g,g2) g##g2 main() { int var12=100; printf("%d",f(var,12)); }