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 / yogesh bansal

if we add semicolon after main(5) like ; main(5);

the ouput will be 1.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between declaring a variable and defining a variable?

721


Explain what is the best way to comment out a section of code that contains comments?

713


Do you know the purpose of 'register' keyword?

641


Write a program to print factorial of given number using recursion?

601


What is actual argument?

587






To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2183


What is the process of writing the null pointer?

606


What is || operator and how does it function in a program?

623


What is scope of variable in c?

560


How can I pad a string to a known length?

609


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1652


List the difference between a While & Do While loops?

631


What are runtime error?

624


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

621


What are the keywords in c?

640