C Programming :: Functions - Discussion
Home > C Programming > Functions > MCQs Questions Discussion
4 / 53
What is the output of the following 'C' program?
#include<stdio.h>
aaa() {
printf("hi");
}
bbb() {
printf("hello");
}
ccc() {
printf("bye");
}
void main()
{
int (*ptr[3])();
ptr[0]=aaa;
ptr[1]=bbb;
ptr[2]=ccc;
ptr[2]();
}
#include<stdio.h>
aaa() {
printf("hi");
}
bbb() {
printf("hello");
}
ccc() {
printf("bye");
}
void main()
{
int (*ptr[3])();
ptr[0]=aaa;
ptr[1]=bbb;
ptr[2]=ccc;
ptr[2]();
}
Ahi
Bbye
Caaa
DCompilation Error
ENone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!