2. Write the output of the following functions with proper reasons. You will get marks only if you have given a proper r

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

2. Write the output of the following functions with proper reasons. You will get marks only if you have given a proper r

Post by answerhappygod »

2 Write The Output Of The Following Functions With Proper Reasons You Will Get Marks Only If You Have Given A Proper R 1
2 Write The Output Of The Following Functions With Proper Reasons You Will Get Marks Only If You Have Given A Proper R 1 (48.96 KiB) Viewed 85 times
2. Write the output of the following functions with proper reasons. You will get marks only if you have given a proper reason for your [10x2] answer: void foo() { int m=10,*n; void *p; n=p=&m; printf("%u, %u",n++,p++); } void foo() { int arr[] {0,1,2}; int *p[] {arr,arr+1,arr+2}; int **k; k=p: **k++; printf("%d,%d,%d\n",k-p.*k- a, **k): *++*k; printf("%d,%d,"%d\n",k-p,*k- a,**k); ++**k; printf("%d,%d,%d\n",k-p.*k- a, **k); } void foo() { int a[] {0, 4, 3, 4); int *p, k,i; for(p=a+3,i=0;i<4;i++) printf("%d",p[-i]); } 1 void main() { int var=10; if(var & 8 == 8) printf("Fire"); else printf("Water"); }
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply