proc() {
static i=10;
printf("%d",i);
}
If this proc() is called second time, what is the output?
Answer Posted / saurabh
does static function increment the counter variable by
one?? if not then how can u say that i value will be
incremented by 1.
finally the i value will be 10 only. it will not
increment.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Why c language?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
List the variables are used for writing doubly linked list program.
What is main function in c?
What does dm mean sexually?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
Explain what are its uses in c programming?
Can an array be an Ivalue?
The statement, int(*x[]) () what does in indicate?
What is a shell structure examples?
What is typedf?
develop algorithms to add polynomials (i) in one variable
What is new line escape sequence?
What is pointer to pointer in c with example?
What is the size of enum in c?