write a program for size of a data type without using
sizeof() operator?
Answer Posted / learner
#include<stdio.h>
void main()
{
char *ptr1,*ptr2;
char fl;//float,double,int
ptr1 = &fl;//it will take the address of f1
ptr2 = (&fl+1);//it wil increment the address with according thr memory size
printf("%u",(char *)ptr2-(char *)ptr1);//explicit type casting for pointers
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Why array is used in c?
Explain what happens if you free a pointer twice?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
Which is better oop or procedural?
how many key words availabel in c a) 28 b) 31 c) 32
What is #include stdio h?
Is c still relevant?
Define the scope of static variables.
Explain what are the different data types in c?
What are the 5 types of inheritance in c ++?
Explain argument and its types.
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
write a program for the normal snake games find in most of the mobiles.
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.
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..