Answered step by step
Verified Expert Solution
Question
1 Approved Answer
General requirement to solve them is to print the pdf, solve it in hand , take picture of the solution, and combine them into a
General requirement to solve them is to print the pdf, solve it in hand, take picture of the solution, and combine them into a single pdf.
Try to solve the following exercise without using any compiler.
1.) What would be the output of the following programs: (a) int main() int i = 5, j = 2; junk (i, j); printf (" %d %d", i, j); return ; void junk ( int i, int j) { i - i * i; j-j*j; (b) int main() int i = 5, j = 2; junk ( &i, &j); printf (" %d %d", i, j); return 0; void junk ( int *i, int *j) { j - *j*j; int main() int i = 4, j = 2; junk ( &i, j); printf (" %d %d", i, 1); return; void junk ( int *i, int j ) j-j*j; (d) int main() float a = 13.5 ; float *b, *C; b - &a ; /* suppose address of a is 1006 */ C-b ; printf (" % % %u", &a, b, c); printf (" %f %f %f %f %f", a, *(&a), *&a, *b, *c); return 0
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started