in one file global variable int i; is declared as static. In
another file it is extern int i=100;
Is this valid ?
Answers were Sorted based on User's Feedback
Answer / phani
No its invalid.A variable declared as static cannot be
changed though it is a global variable.
| Is This Answer Correct ? | 20 Yes | 3 No |
Answer / anil
variable/function defined static make the scope limited to
only the file in which it is defined and cannot be accessed
outside the file. Hence it is invalid
| Is This Answer Correct ? | 6 Yes | 0 No |
Program to find the absolute value of given integer using Conditional Operators
wats the diference btwen constant pointer and pointer to a constant.pls give examples.
Tell me when is a void pointer used?
given post order,in order construct the corresponding binary tree
Explain what is a program flowchart and explain how does it help in writing a program?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
what is c++ programming?
yogesh patil in dell
What does sizeof int return?
write a programming in c to find the sum of all elements in an array through function.
Is both getch() and getchar() functions are similar? if it is similar means why these two functions are used for same usage? if it is not similar means what is the difference?
write a “Hello World” program in “c” without using a semicolon?