25)Consider the following function and code segment void WhatisThis (int first,
ID: 3709277 • Letter: 2
Question
25)Consider the following function and code segment void WhatisThis (int first, int second first 15 second first-1 return int main(void) int j 8 int k 6 WhatisThis j, &k;) printf("%d %din, j, k); return, What values are printed by the printf statement in main? Options a)86 b) 15 14 c) 8 7 d) 8 14 e) None of the above 26)What is the output of the following program? #include int mystery(char "ptr, char letter ) int main(void) [ char s( ] = ' i am really-a-happy-man", char letter: 'e'; printr%dn", mystery(s, letter)) ; return 0, int mystery(char 's, char letter) char "p s if (p = NULL) return(-1); while ("p) if (pletter) f return (p-s): ptt return (-1) Options b) 7 c) 8 d) 9 e) None of the aboveExplanation / Answer
25)
ans:
d) 8 14
because address of 6 get intialized in all function also in printf statement.
26) b) 7
27)e) 4
It execute four times
fork funnction which creates a child process and execute the process once again 3 times then the actual printf executes .
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.