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
What is the difference between declaring a variable and defining a variable?
Explain what is the best way to comment out a section of code that contains comments?
Do you know the purpose of 'register' keyword?
Write a program to print factorial of given number using recursion?
What is actual argument?
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
What is the process of writing the null pointer?
What is || operator and how does it function in a program?
What is scope of variable in c?
How can I pad a string to a known length?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
List the difference between a While & Do While loops?
What are runtime error?
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
What are the keywords in c?