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
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What is string function in c?
Using which language Test cases are added in .ptu file of RTRT unit testing???
Simplify the program segment if X = B then C ← true else C ← false
Can you subtract pointers from each other? Why would you?
In a byte, what is the maximum decimal number that you can accommodate?
What is c preprocessor mean?
Why does not c have an exponentiation operator?
Explain the red-black trees?
Is it possible to pass an entire structure to functions?
Differentiate between calloc and malloc.
What are the modifiers available in c programming language?
How many keywords (reserve words) are in c?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none