Default data type in c

Default data type is opposite of default modifier as you read in the above topic. In case of only SIZE, SIGN, STORAGE CLASS, CONSTANT, and VOLATILE modifier compile automatically assumes int as a default data type. For example:

(1)
long a=25;
It is equivalent to: long int a=25;
(2)
signed a=25;
It is equivalent to: signed int a=25;
(3)
register a=25;
It is equivalent to: unsigned register int a=25;

But it is illegal to write:
far *f;
pascal p;
interrupt i;

Question: What will be output of following c code?

#inclued<stdio.h>
int main(){
    printf(“%d”,sizeof(const,extern,volatile));
    return 0;
}



Introduction
List of data types
Primitive data types in c
Modifiers of data types in c
List of modifiers in c
Default modifiers of data types in c
Default data of modifiers in c
Rules of using modifiers in c
Possibles modifiers of given data types in c
Size modifier in c
Size of data types in c
Sign modifier in c
Range of data types in c
Easy way to remember limit of data types in c
Const modifiers in c
Pointers modifier in c
Function modifier in c
Interrupt modifier in c
Volatile modifier in c
Fundamental data types in c
Memory representation of char in c
Memory representation of signed char in c
Memory representation of int in c
Memory representation of signed int in c
Memory representation of double in c

2 comments:

Manish6745 said...

what will b d output of above code?

sarath said...
This comment has been removed by the author.