proc() {
static i=10;
printf("%d",i);
}
If this proc() is called second time, what is the output?
Answer Posted / suchita
the answer is 10 bcoz no increment statement in that loop. if
increment statement is there then definitely the value of
static variable is increased. otherwise it is fixed.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
how to make a scientific calculater ?
What does sizeof int return?
What is a const pointer in c?
When would you use a pointer to a function?
What do you mean by c what are the main characteristics of c language?
while initialization of array why we use a[][2] why not a[2][]...?
What is getch () for?
What is echo in c programming?
Why shouldn’t I start variable names with underscores?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
Explain what is the difference between far and near ?
What are the differences between new and malloc in C?
What is extern c used for?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What are multidimensional arrays?