Menu

[Solved] Output C Code Include Void M Int P Int 0 0 5 Printf D T P Void Main Int 5 6 5 3 M Question Q37228278

What is the output of this C code?

#include <stdio.h>

void m(int *p) {

int i = 0;

for(i = 0;i < 5; i++)

printf(“%dt”, p[i]);

}

void main() {

int a[5] = {6, 5, 3};

m(&a);

}

Question 9 options:

a) 0 0 0 0 0

b) 6 5 3 0 0

c) Run time error

d) 6 5 3 junk junk

Expert Answer


Answer to What is the output of this C code? #include void m(int *p) { int i = 0; for(i = 0;i < 5; i++) printf("%dt", p[i]); } vo... . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *