[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Pointers - Discussion

Home > C Programming > Pointers > MCQs Questions Discussion

9 / 60

What is the output of the following C Program?

#include<stdio.h>
int main(){
void *vp;
char ch = 'g', *cp = "goofy";
int j '= 20;
vp = &ch;
printf("%c", *(char *)vp);
vp = &j; 
printf("%d",*(int *)vp); 
vp = cp;
printf("%s",(char *)vp + 3);
}

Agoofy20

Bg20fy

Cgg20fy

DCompilation error

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!