Which of the following about automatic variables within a
function is correct ?
a.its type must be declared before using the variable
b.they are local
c.they are not initialised to zero
d.they are global.

Answers were Sorted based on User's Feedback



Which of the following about automatic variables within a function is correct ? a.its type must ..

Answer / sundeep

They are local.

Is This Answer Correct ?    28 Yes 5 No

Which of the following about automatic variables within a function is correct ? a.its type must ..

Answer / sivadatta kodali

answer is Both a And b because automatic variables is
nothing but a normalvariables their scope is with in the block
it must be declared before using the variable

Is This Answer Correct ?    6 Yes 0 No

Which of the following about automatic variables within a function is correct ? a.its type must ..

Answer / rajan singh

b. is right answer

Is This Answer Correct ?    5 Yes 2 No

Which of the following about automatic variables within a function is correct ? a.its type must ..

Answer / uma

auto is a defult data type in c na???then have to declare??
but c answer is some what ok....but exactly i think b...
i go for b

Is This Answer Correct ?    4 Yes 1 No

Which of the following about automatic variables within a function is correct ? a.its type must ..

Answer / subbu

options a,b,c are correct

Is This Answer Correct ?    5 Yes 9 No

Which of the following about automatic variables within a function is correct ? a.its type must ..

Answer / shruti

yup options a , b , c are correct..

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More C Interview Questions

main() { int i = 10; printf(" %d %d %d \n", ++i, i++, ++i); }

10 Answers   TCS, Vector,


What are volatile variables in c?

1 Answers  


The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.

1 Answers   Microsoft,


How can you find the exact size of a data type in c?

1 Answers  


Explain what are the different data types in c?

1 Answers  


Write the following function in C. stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return - 1. The function should not make use of any C library function calls.

3 Answers   Google, Infosys, JTL, OpenFeel,


What does do in c?

1 Answers  


how logic is used

1 Answers  


Write a program to swap two numbers without using third variable?

1 Answers  


Is c is a high level language?

1 Answers  


why u join this call center?

6 Answers   DELL,


There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.

1 Answers   HCL, iGate,


Categories