1 : |
|
2 : |
|
3 : |
|
So, clearly long int l = 2.35; is not User-defined data type.
(i.e.long int l = 2.35; is the answer.)
1 : | extern int fun(); |
2 : | int fun(); |
int fun(); declaration in C is to indicate the existence of a function inside the current module or in the same file.
While a function definition specifies what a function does, a function prototype can be thought of as specifying its interface.
#include<stdio.h> int main() { extern int a; printf("%d\n", a); return 0; } int a=20;
- During definition the value is initialized.
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;
}
Output:
fmod of 3.14/2.1 is 1.040000
Declaration never reserves any space for the variable or instance in the program's memory; it simply a "hint" to the compiler that a use of the variable or instance is expected in the program. This hinting is technically called "forward reference".
Comments
Copyright ©CuriousTab. All rights reserved.
good content