[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 :: Functions - Discussion

Home > C Programming > Functions > MCQs Questions Discussion

18 / 53

What is the output of the following 'C' program?

#include<stdio.h>
int aaa() 
{
printf("Hi");
} 
int bbb(){ 
printf("hello");
} 
int ccc(){
printf("bye");
}

void main()
{
int ( * ptr[3]) (); 
ptr[0] = aaa; 
ptr[1] = bbb; 
ptr[2] =ccc; 
ptr[2]();
}

AHi

Bhello

Cbye

DCompilation Error

ENone of these

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!