Re: what is difference between sizeof and strlen
RAJU wrote on 05/08/05 :[color=blue]
> First of all, sizeof() and strlen() are differnt. The sizeof() is an[/color]
The is no sizeof() operator. It's sizeof. The () are around the types
(like a typecast)
int a;
size_t n = sizeof a;
n = sizeof (int);
--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html
"Mal nommer les choses c'est ajouter du malheur au
monde." -- Albert Camus.
RAJU wrote on 05/08/05 :[color=blue]
> First of all, sizeof() and strlen() are differnt. The sizeof() is an[/color]
The is no sizeof() operator. It's sizeof. The () are around the types
(like a typecast)
int a;
size_t n = sizeof a;
n = sizeof (int);
--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html
"Mal nommer les choses c'est ajouter du malheur au
monde." -- Albert Camus.
Comment