how to find the size of the data type like int,float
without using the sizeof operator?
Answer Posted / ravi.jnv
Its possible by pointers.
-----------------
int one,two;
int *ptrOfOne,*ptrOfTwo;
int size;
ptrOfOne = &one;
ptrOfTwo = &two;
size = ptrOfOne - ptrOfTwo ; /* u can get minus value also
depending upon stack how it pushes variables */
| Is This Answer Correct ? | 6 Yes | 28 No |
Post New Answer View All Answers
hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel
By using C language input a date into it and if it is right?
What is the scope of global variable in c?
Explain the use of function toupper() with and example code?
How can I sort more data than will fit in memory?
What is the basic structure of c?
How can I write a function that takes a format string and a variable number of arguments?
How do you define a function?
can anyone please tell about the nested interrupts?
What is #define?
What is the size of enum in c?
What is a pointer in c plus plus?
What is the explanation for cyclic nature of data types in c?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
What are integer variable, floating-point variable and character variable?