C Language INTERVIEW QUESTION & ANSWERS
26. |
How can variables be characterized? |
|
The variables can be categorized by storage class as well as by data type. The storage class specifies the portion of the program within which the variables are recognized. |
27. |
Give the rules for variable declaration? |
|
The rules for variable declaration in C are given below :
- A variable name consists of alphabets, digits and the underscore (_) character
- The length of variable should be kept upto 8 characters though your system may allow upto 40 characters
- They must begin with an alphabet
- Some systems also recognize an underscore as the first character
- White space and commas are not allowed
- Any reserved word (keyword) cannot be used as a variable name.
|
|
Posted by mathankumar. (Nov 21, 2013) |
|
The length of variable should be kept upto 8 characters in ansi c. But other c softwares have allow upto 31 characters |
28. |
What is the purpose of type declarations? |
|
The type declaration allow to create a synonym for other data types. Its syntax is typedef type identifier; The declaration typedef unsigned long int INTEGER |
29. |
What is recursion? |
|
C language a function may call another function. When a function calls itself, it is referred to as recursive call and the process is known as recursion. C provides very good facilities for recursion. |
|
Posted by Dastagirsab Bagwwan. (Oct 11, 2013) |
|
Recursion is a technique which calls and recalls of interm of itself is called recursion. |
30. |
What is data types? |
|
Data types refer to the classes of data that can be manipulated by C programs. The three fundamental data types supported by C are character, integer and real type. |