in one file global variable int i; is declared as static. In
another file it is extern int i=100;
Is this valid ?
Answer Posted / 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 |
Post New Answer View All Answers
Difference between Shallow copy and Deep copy?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
Can a pointer be static?
Give me the code of in-order recursive and non-recursive.
What is string in c language?
What is the difference between a free-standing and a hosted environment?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What are pragmas and what are they good for?
How does normalization of huge pointer works?
What are actual arguments?
Explain that why C is procedural?
How do you print only part of a string?
How many parameters should a function have?
What is indirection?
How many main () function we can have in a project?