write a program for size of a data type without using
sizeof() operator?
Answer Posted / arun kumar mishra kiit univers
#include<stdio.h>
#include<conio.h>
void main()
{
float f1,*Ptr1,*Ptr2;
ptr1 = &fl;
ptr2 = (&fl+1);
printf("%u",(char *)ptr2-(char *)ptr1);
getch();
}
Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
How do you use a pointer to a function?
What is the difference between int main and void main?
Explain how do you sort filenames in a directory?
Write a program with dynamically allocation of variable.
Are pointers really faster than arrays?
What is a c token and types of c tokens?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
Difference between linking and loading?
the question is that what you have been doing all these periods (one year gap)
while initialization of array why we use a[][2] why not a[2][]...?
What are keywords in c with examples?
Is multithreading possible in c?
Explain what are the standard predefined macros?
What is string function in c?