what is the output of the following program and explain the
answer
#include<stdio.h>
exp()
{
main(5)
}
main(int a)
{
printf("%d",a);
return;
}

Answer Posted / vignesh1988i

first of all this will give an error tat 'exp()' is not declared or it needs a prototype & if the 'exp()' is corrected and ';' is added in calling function of main(5) this will print as 5

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are dangling pointers? How are dangling pointers different from memory leaks?

619


Which header file should you include if you are to develop a function which can accept variable number of arguments?

805


What is an lvalue in c?

692


Can stdout be forced to print somewhere other than the screen?

620


How can I change the size of the dynamically allocated array?

630






Write a program to find factorial of a number using recursive function.

644


What does return 1 means in c?

581


How can I do peek and poke in c?

617


Why is c used in embedded systems?

609


Describe the header file and its usage in c programming?

616


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

727


Explain what are the different file extensions involved when programming in c?

631


What are the advantages of Macro over function?

1194


Explain how can I read and write comma-delimited text?

649


What is difference between static and global variable in c?

535