| |
GeekInterview.com > Tech FAQs > Programming > C
| Print | |
Question: Find address of variable
Answer: How to find the address of a variable which is declared as long double? |
| August 08, 2008 06:02:48 |
#1 |
| chandrikakr |
CRM Expert Member Since: July 2008 Total Comments: 2 |
RE: Find address of variable |
You can use the sizeof() operator to get the size of a variable declared as long double. try the following code: #include<stdio.h> #include<conio.h> main() { long double a; clrscr(); printf("%d", sizeof(a)); getch(); } |
| |
Back To Question | |