write a program for size of a data type without using
sizeof() operator?
Answer Posted / lalit kumar
#include "stdafx.h"
#include "stdio.h"
#include "conio.h"
int main()
{
char *a,*s, v='m';
a=&v;
s=a;
a++;
int intsize=(int)a-(int)s;
printf("%d",intsize);
getch();
return 0;
}
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Write a code to determine the total number of stops an elevator would take to serve N number of people.
What is the mean of function?
What is the difference between fread buffer() and fwrite buffer()?
what is a function method?give example?
hi, which software companys will take,if d candidate's % is jst 55%?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.
find out largest elemant of diagonalmatrix
Explain what is the difference between text files and binary files?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
how logic is used
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
What is variable initialization and why is it important?
How many types of operator or there in c?
Calculate 1*2*3*____*n using recursive function??