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
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
Write a program to print "hello world" without using a semicolon?
Do pointers store the address of value or the actual value of a variable?
What does 4d mean in c?
How can I do serial ("comm") port I/O?
Differentiate between a structure and a union.
Where in memory are my variables stored?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
What are categories used for in c?
What is the explanation for modular programming?
Why malloc is faster than calloc?
What is the use of getchar() function?
What is the use of bitwise operator?
using only #include