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
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
Write a program to print numbers from 1 to 100 without using loop in c?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What are the advantages of using Unions?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
What is the general form of function in c?
Can we replace the struct function in tree syntax with a union?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
What are c preprocessors?
How to delete a node from linked list w/o using collectons?
C program to find all possible outcomes of a dice?
What do you understand by friend-functions? How are they used?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
Is there a way to switch on strings?