Académique Documents
Professionnel Documents
Culture Documents
3) Can I use int data type to store the value 32768? Why?
Ans: No because the range of int is [32767, +32767]
{
printf("Hello, %s.", name);
}
-When found in a function heading, void means the function does not take any
parameters. For example,
int init (void)
{
return 1;
}
// p points to x
*(int*)p = 2;
p = &r;
// p points to r
*(float*)p = 1.1;
10) What is Storage class ?what are the different storage classes in c?
Ans: A storage class defines the scope (visibility) and life-time of variables and/or
functions within a C Program. They precede the type that they modify. We have four
different storage classes in a C program
-auto
-register
-static
-extern
15) What is the use of void pointer and null pointer in C language?
Ans:NULL POINTER:
-A pointer that is assigned NULL is called a null pointer.
-pointer variable in case you do not have an exact address to be assigned.
VOID POINTER: