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()
{
int a;
printf("%u\n",(int)(&a+1)-(int)(&a));
getch();
return 0;
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain Basic concepts of C language?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
Is c pass by value or reference?
What is a const pointer?
What is anagram in c?
Why c language is called c?
What language is windows 1.0 written?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
What is bubble sort technique in c?
How to delete a node from linked list w/o using collectons?
How to define structures? ·
Explain spaghetti programming?
how is the examination pattern?
What language is lisp written in?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555