C program to find the size of int without using sizeof operator.

source code:


#include<stdio.h>

int main()
{
  int *ptr = 0;
  ptr++;
  printf("Size of int data type:  %d",ptr);
 getch();
  return 0;
}

Comments

Popular posts from this blog

8086 STRING MANIPULATION –FIND AND REPLACE A WORD

Animated Circles In C++

C program to find out the sum of series 1 + 2 + …. + n.