in Programming in C
677 views
1 vote
1 vote
Please kindly tell the full code with the use of sizeof() operator.

 

Thanks!
in Programming in C
by
677 views

3 Comments

what you need actually ? just find the size of an integer variable in your system using sizeof() or sizeof code itself ?
0
0
Actually I'm a beginner to C programming. So, can you tell the code what to write in my editor?
0
0
0
0

1 Answer

1 vote
1 vote
Best answer

I think he needs this. 

#include<stdio.h>
int main(){
    printf("Size of integer in your machine is = ℅u",sizeof(int));
    return 0;
}

Return type of sizeof is unsigned int. Hence I have written ℅u in printf. 

selected by
by

1 comment

Yes, thanks! That's what i needed. 

BTW, what's the meaning of this line return 0; 

What does it do?

0
0

Related questions

0 votes
0 votes
1 answer
3