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 diff b/w static and non static variables in C.
Give some examples plz.

Answer Posted / parth ujenia

main()
{
int i=5;

while(i!=0)
{
printf("%d",i--);
main();
}
getch();
}

output: 54321

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to capitalise first letter of each word in a given string?

1871


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1292


Difference between pass by reference and pass by value?

1097


What are categories used for in c?

1035


Differentiate between full, complete & perfect binary trees.

1052


What is a structural principle?

1090


Where is volatile variable stored?

1026


Does * p ++ increment p or what it points to?

1054


cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

1055


Write a program for finding factorial of a number.

1032


Can the “if” function be used in comparing strings?

981


what is different between auto and local static? why should we use local static?

1077


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2500


Explain what is the difference between functions getch() and getche()?

989


Write a program to print "hello world" without using a semicolon?

1004