Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 4.6 lll be butput? main () int i,x 1,y clrscr ); 1,2s]; print f (\"%d.

ID: 3756241 • Letter: Q

Question

Question 4.6

lll be butput? main () int i,x 1,y clrscr ); 1,2s]; print f ("%d. Ad. . %d. . %d", , x, y, z) ; getch ) 4.6 What will be output name #include main () spectively int a-1,b-1; clrscr ) print f ("%d . . . ", printf ("%dfd". a, b) ) ; getch ); variables determine 4.7 If ASCII code of ' is 45 and of' is 47, what will be output of printf ("%d ", '-','-','-, '-','/','/.'; (a) 45 45 45 45 47 4747(b) 45 47 (c) 45 (d) 47 4.8 main)( int x; print f (" fd", x=20, x=30, x=40) ; printf(" %d", x); the width

Explanation / Answer

#include<stdio.h>
main()
{
int a=1,b=1;
clrscr();
printf("%d...",printf("%d%d",a,b));
getch();
}
OUTPUT
112...
Explanation

The inner printf("%d%d",a,b) will print 11 and it will return the number of digits/characters are printed
so the outer printf will print 2

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote