#include stdio.hvoid main() {int a,b,c;a=a&&b;b=a|b;c=b||1;printf("%d",c);}
#include stdio.hint main(){int a,b;int *p1,*p2;p1=&a;p2=&b;p1++;if(p1==p2)printf("You are pointing to the same house-- %d\n",*p1);elseprintf("You are lost.");return 0;}
What will be the output of the following program?
#include stdio.hint foo(int* a, int* b){ int sum = *a + *b; *b = *a; return *a = sum - *b;}int main(){ int i = 0, j = 1, k = 2, l; l = i++ || foo(&j, &k); printf("%d %d %d %d", i, j, k, l); return 0;}