write a program for size of a data type without using
sizeof() operator?
Answer Posted / akash patil
#include<stdio.h>
#include<conio.h>
void main()
{
int a[2];
printf("size is %d",(int)&a[1]-(int)&a[0]);
getch();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are the types of pointers in c?
Which is better between malloc and calloc?
What does c in a circle mean?
Do you know the use of 'auto' keyword?
Do you know the difference between exit() and _exit() function in c?
Explain how can you restore a redirected standard stream?
Are pointers really faster than arrays?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
What is function what are the types of function?
What does printf does?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
What are the advantages and disadvantages of c language?
How are pointers declared in c?
How can I change their mode to binary?
How many bytes are occupied by near, far and huge pointers (dos)?