Why C Programming Declarations and Initializations?
In this section you can learn and practice C Programming Questions based on "Declarations and Initializations" and improve your skills in order to face the interview, competitive examination and various entrance test (CAT, GATE, GRE, MAT, Bank Exam, Railway Exam etc.) with full confidence.
Where can I get C Programming Declarations and Initializations questions and answers with explanation?
IndiaBIX provides you lots of fully solved C Programming (Declarations and Initializations) questions and answers with Explanation. Solved examples with detailed answer description, explanation are given and it would be easy to understand. All students, freshers can download C Programming Declarations and Initializations quiz questions with answers as PDF files and eBooks.
Where can I get C Programming Declarations and Initializations Interview Questions and Answers (objective type, multiple choice)?
Here you can find objective type C Programming Declarations and Initializations questions and answers for interview and entrance examination. Multiple choice and true or false type questions are also provided.
How to solve C Programming Declarations and Initializations problems?
You can easily solve all kind of C Programming questions based on Declarations and Initializations by practicing the objective type exercises given below, also get shortcut methods to solve C Programming Declarations and Initializations problems.
Remainder cannot be obtain in floating point division.
Answer: Option C
Explanation:
fmod(x,y) - Calculates x modulo y, the remainder of x/y.
This function is the same as the modulus operator. But fmod() performs floating point divisions.
Example:
#include <stdio.h>
#include <math.h>
int main ()
{
printf ("fmod of 3.14/2.1 is %lf\n", fmod (3.14,2.1) );
return 0;
}
External Linkage-> means global, non-static variables and functions.
Internal Linkage-> means static variables and functions with file scope.
None Linkage-> means Local variables.
Variable names in C are made up of letters (upper and lower case) and digits. The underscore character ("_") is also permitted. Names must not begin with a digit.
Examples of valid (but not very descriptive) C variable names:
=> foo
=> Bar
=> BAZ
=> foo_bar
=> _foo42
=> _
=> QuUx
extern int fun(); declaration in C is to indicate the existence of a global function and it is defined externally to the current module or in another file.
int fun(); declaration in C is to indicate the existence of a function inside the current module or in the same file.