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

What is signed and unsigned?

646


How to explain the final year project as a fresher please answer with sample project

472


Describe the order of precedence with regards to operators in C.

635


Where static variables are stored in memory in c?

525


which is conditional construct a) if statement b) switch statement c) while/for d) goto

741






Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

1595


What are void pointers in c?

576


What is boolean in c?

615


Explain what is the difference between a string and an array?

640


What is openmp in c?

614


What is the difference between a function and a method in c?

562


Explain what’s a signal? Explain what do I use signals for?

616


Define macros.

787


Define circular linked list.

573


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

670