[Solved]-Question 4 Anything Prints Following C Statements Performed 1 Int D 19 R Q Printf D D 10 R Q37299390
These qiestions for C programming
Question 4: What, if anything, prints when each of the following C statements is performed? 1, int d=19,r,q; printf (“%d d% 10 ; r t %d”, q,r); 2. double x= 2。5; y = floor ( printf (“y= 1+x ) ; %1fn”,y); 3. int x(1,-2,2,3) ,m; printf (“x(%d]퍼d” ,n, x[m] ) ; 4, char name []=”Abdulrahman”; int L=0 ; while (name [L] !=’ ‘ ) { し++ ; if(L> 0) printf(” L= %d”,L) ; 5. float x-3.15, y-1.5,* #xp tray ; printf (“X= % . 2f ” , x) ; 6. int A[31 131-((1,2,1, (0), (0,1,1)); int i,j for (i-0:i3:i++) for (j-ij<3:j++) printf(“82d” ,A[i] [j]); printf(“In”) 7. char s1 []=”Dammam ” ; char s2 [201; int j int L-strlen (s1) /*function strlen) returns the length of string sl/ for (j-0:j Lj++) s20j1-s1L-1-j1 puts (s2) Show transcribed image text Question 4: What, if anything, prints when each of the following C statements is performed? 1, int d=19,r,q; printf (“%d d% 10 ; r t %d”, q,r); 2. double x= 2。5; y = floor ( printf (“y= 1+x ) ; %1fn”,y); 3. int x(1,-2,2,3) ,m; printf (“x(%d]퍼d” ,n, x[m] ) ; 4, char name []=”Abdulrahman”; int L=0 ; while (name [L] !=’ ‘ ) { し++ ; if(L> 0) printf(” L= %d”,L) ; 5. float x-3.15, y-1.5,* #xp tray ; printf (“X= % . 2f ” , x) ;
6. int A[31 131-((1,2,1, (0), (0,1,1)); int i,j for (i-0:i3:i++) for (j-ij
Expert Answer
Answer to Question 4: What, if anything, prints when each of the following C statements is performed? 1, int d=19,r,q; printf (“%d… . . .
OR

