how to find the size of the data type like int,float
without using the sizeof operator?
Answer Posted / vishnu948923
void main()
{
char *ptr1,*ptr2;
float fl;
ptr1 = &fl;
ptr2 = (&fl+1);
printf("%u",ptr2-ptr1);
}
Is This Answer Correct ? | 29 Yes | 15 No |
Post New Answer View All Answers
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
How do I use void main?
Give basis knowledge of web designing ...
What is the use of a conditional inclusion statement in C?
What should malloc() do?
What are dangling pointers in c?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
Write a program that accept anumber in words
Can we declare variables anywhere in c?
what are # pragma staments?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
What is a stream?
What are global variables and how do you declare them?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
How do you print only part of a string?