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 below code?
main() { static int a=5; printf("%3d",a--); if(a) main(); }



What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main..

Answer / vikas

output is 5 4 3 2 1

Is This Answer Correct ?    11 Yes 2 No

Post New Answer

More C Interview Questions

WAP to convert text into its ASCII Code and also write a function to decode the text given?

2 Answers  


What is scope rule in c?

0 Answers  


An entire structure variable can be assigned to another structure variable if __________

3 Answers   Sasken, TCS, Tech Mahindra, Wipro,


What is the difference between void main and main in c?

0 Answers  


What is the benefit of using const for declaring constants?

0 Answers  


How can I send mail from within a c program?

0 Answers  


to find the program of matrix multiplication using arrays

6 Answers   Bhel,


What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

0 Answers  


What is void main ()?

0 Answers  


Why is c called a mid-level programming language?

0 Answers  


Can main () be called recursively?

0 Answers  


what is the difference between NULL('\0') and 0?

14 Answers   Microsoft,


Categories