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

Print f(\"%d. %d. %d\", i. j. m); return 0;} What will be the output of the prog

ID: 3843888 • Letter: P

Question

Print f("%d. %d. %d", i. j. m); return 0;} What will be the output of the program? #include void fun(int*, int*); int main() {int a=5.b=2; fun (&a.; &b;); print f("%d. %d". a, b). return 0;} void fun (int *i. int *j) {*i - *i**j; *i - *j**i;} What it the output of the following code? #include void write(int); int main() {write(10); return 0;} void write(int n) {if (n = 1) return; write(n-1) print f("%d"n)} What is the output of the following code? int a(5)={l1.12.13.14.15}."p-a; *(p+=3)=100; p--; *p=200; for(p=a; p>5; p++) print f("%d "*p); What is the output of the following code? unsigned int a = 15. b =4; print f("%d " a

Explanation / Answer

#include <stdio.h>

void fun(int* , int*);
int main()
{
    int a=5, b=2;
   fun(&a,&b);
   printf("%d,%d", a,b);

    return 0;
}

void fun(int* i, int* j)
{
  
   *i = *i**i;
   *j=*j**i;
}

sample output

25,50

#include <stdio.h>

void write(int);
int main()
{
  
   write(10);
  

    return 0;
}

void write(int n)
{
  
   if(n==1)
       return;
   write(n-1);
   printf("%d",n);
}


sample output

2345678910

int a[5]={11,12,13,14,15}, *p=a;
*(p+=3)=100;
p--;
*p=200;
for(p=a;p<a+5;p++)
   printf("%d",*p);

sample output


111220010015

unsigned int a=15,b=4;
printf("%d ",a>>2);
printf("%d ",a<<1);

sample output

3
30

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