This video is made by #codeambition
Sizeof() operator :- This operator is used to calculate the size of the given variables,value or data type.This operator is unary operator which perform task on single operands.
syntax:-
sizeof(variable or value or data_type);
for e.g.
int x;
clrscr();
printf("\nSize of the x = %d ",sizeof(x));
getch();
Here the size will displayed 2 bytes.
REMEMBER:
Size of int = 2 bytes
size if char = 1bytes
Size of float = 4 bytes
Size if double = 8 bytes.
#clanguage
#sizeof()
#operator
#cprogramming
コメント