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

how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?

2 Answers   Patni, TCS,


Describe the steps to insert data into a singly linked list.

0 Answers  


What is the right type to use for boolean values in c? Is there a standard type?

0 Answers  


how to make c program without a libary? e.g.#include<stdio.h> libary is not in c progaram.

2 Answers  


What is a protocol in c?

0 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.

4 Answers   OpenFeel,


int i=0,j; j=++i + ++i ++i; printf(" %d",j);

2 Answers   ME,


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

0 Answers   TATA, TCS,


Explain how can I convert a number to a string?

0 Answers  


Write a program using two-dimensional array that lists the odd numbers and even numbers separately in a 12 input values.

1 Answers  


What is a string?

0 Answers  


How we can write a value to an address using macro..?

0 Answers   Tata Elxsi,


Categories