write a program for size of a data type without using
sizeof() operator?
Answer Posted / neel patwa
//Nice way to find size of any data type...
#include<iostream.h>
void main(){
int *p=0;
p++;
cout<<"\nSize of int="<<(int)p;
}
Note:U can replace int by other datatpe,
to find size of any data type..
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
What is the process to generate random numbers in c programming language?
How can you invoke another program from within a C program?
What is array of structure in c programming?
Which is better pointer or array?
What are the Advantages of using macro
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
What is a pragma?
What is the difference between #include and #include 'file' ?
What is pointer and structure in c?
how many errors in c explain deply
string reverse using recursion
What does *p++ do? What does it point to?
What do header files do?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.