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
Explain what is a pragma?
write a program to create a sparse matrix using dynamic memory allocation.
What is data types?
Why do we use c for the speed of light?
What is pointer in c?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
can anyone please tell about the nested interrupts?
What are the keywords in c?
What is a MAC Address?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
List the difference between a 'copy constructor' and a 'assignment operator' in C?
What are the types of variables in c?
What is #include stdlib h?
What is quick sort in c?
When can you use a pointer with a function?