proc() {
static i=10;
printf("%d",i);
}
If this proc() is called second time, what is the output?
Answer Posted / vignesh1988i
if it is called for second time also ,it will be 10 only but
in a different thought....
static keyword is only one time initilization....if the
compailer when again reads the same line it blindly ignores
it and print the latest value of yhat static variable
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
how can f be used for both float and double arguments in printf? Are not they different types?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
Are there constructors in c?
What is your stream meaning?
What is the scope of global variable in c?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
write a progrmm in c language take user interface generate table using for loop?
What are structures and unions? State differencves between them.
Where are the auto variables stored?
Can you please explain the difference between syntax vs logical error?
Tell us bitwise shift operators?
explain how do you use macro?
Can you please explain the difference between malloc() and calloc() function?
What are the Advantages of using macro
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical