how to find the size of the data type like int,float
without using the sizeof operator?
Answer Posted / vignesh1988i
#include<stdio.h>
#include<conio.h>
void main()
{
int ptr,a[2];
char ptr1,b[2];
float ptr2,c[2];
ptr=(a+1)-a;
ptr1=(b+1)-b;
ptr2=(c+1)-c;
printf("int : %d\n",ptr);
printf("char : %d\n",ptr1);
printf('float : %d\n",ptr2);
getch();
}
than ku
| Is This Answer Correct ? | 0 Yes | 8 No |
Post New Answer View All Answers
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
Explain what is a pragma?
How can a program be made to print the name of a source file where an error occurs?
How can you read a directory in a C program?
Explain what is the difference between null and nul?
What is anagram in c?
What is the general form of #line preprocessor?
What does void main () mean?
What are c preprocessors?
What are 'near' and 'far' pointers?
Why do we use stdio h and conio h?
How can you find out how much memory is available?
Are the variables argc and argv are always local to main?
Write a code to determine the total number of stops an elevator would take to serve N number of people.