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

matrix multiplication fails introspect the causes for its failure and write down the possible reasons for its failurein c language.

5 Answers   TCS,


write a program whose output will be- 1 12 123 1234

10 Answers  


find a number whether it is even or odd without using any control structures and relational operators?

22 Answers   Microsoft, Shashank Private Limited,


How to convert decimal to binary in C using recursion??

4 Answers   HP, IBM,


what are the difference between ANSI C and Let Us c and Turbo C

4 Answers   LG Soft,






What is the scope of global variable in c?

0 Answers  


how can i get output the following... 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 and 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 plz plz...

3 Answers  


What are loops in c?

0 Answers  


What does the function toupper() do?

0 Answers  


write a c program to remove all the duplicate characters in a string and replace with single character? ex:-input- AAABBBCCC output- ABC

2 Answers   HCL,


How to use c/c++ code in JAVA

10 Answers   CDAC, IBM, Satyam, Scope International,


What are the preprocessors?

9 Answers   HP,


Categories