What do nonglobal variables default to

a) auto

b) register

c) static


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What is the stack?

5 Answers   IBM, ICICI,


Why can you not make a constructor as const?

3 Answers  


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

0 Answers  


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

0 Answers  


Can we use struct in c++?

0 Answers  






What do you mean by abstraction. Explain your answer?

5 Answers  


What is "strstream" ?

1 Answers   Huawei,


What is a container class? What are the types of container classes?

1 Answers  


program in c++ to input digits and print in words

1 Answers   Microsoft,


Q1 On the screen how do you write the following words? she sells seashells by the seashore (a) all in one line (b) in three lines Q2 Write a program that asks interactively the user’s name and age and responds with Hello name, next year you will be next_age. where next_age is age + 1 Q3 For the different values of n, what is the output? printf(“%x %c %o %d”,n,n,n,n); (a) n = 67 (b) n = 20 (c) n = 128 (d) n = 255 (e) n = 100 Q4 What will be the output of the following program? int main() { char a,b,c; scanf(“%c %c %c”,&a,&b,&c); printf(“a=%c b=%c c=%c”,a,b,c); return 0; } [Note: The user input is:ABC DEF GHI]

1 Answers  


What is the difference between static link library and dynamic link library?

7 Answers   Tech Mahindra,


write a program that takes 5 digit no and calculate 2 power that no and print it.

3 Answers  


Categories