C Programming and Technical

Q. Four type of scope in c:

A. Block scope.
Function scope.
File scope.
Program scope

Read Solution (Total 0)

C Other Question

Q. What is use of void data type?

A. Void is an empty data type normally used as a return type in C/C++, C#, Java functions/methods to declare that no value will be return by the function. The another used of void is to declare the pointer in C/C++ where It is not sure what data type is addressed by the pointer.
Q. Tell any five properties of auto variables?
A. Auto variables are defined inside a function. A variable declared inside the function without storage class name is, by default, an auto variable. These functions are declared on the stack. The stack provides temporary storage