Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is it better to use a macro or a function?

1173


How many levels of pointers can you have?

1205


Explain argument and its types.

1072


What is external variable in c?

1070


What is strcpy() function?

1176


What is a 'null pointer assignment' error?

1229


how do you programme Carrier Sense Multiple Access

1979


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1259


How can I discover how many arguments a function was actually called with?

1079


write a program to rearrange the array such way that all even elements should come first and next come odd

2288


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

1075


What are the 3 types of structures?

1040


What is the difference between struct and union in C?

1329


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

1082


What is the ANSI C Standard?

1292