#include<stdio.h>
#include<conio.h>
#include<string.h>
struct
{
int num1,num2;
char s1;
int *ptr;
int abc[5];
}a[2];
void main()
{
int start, last;
start=&a[1].num1;//error
last=&a[0].num1;//error
printf("\nsize of structure :%d bytes",start-last);
getch();
}
getch();
}
Raja ali 0 Newbie Poster
Raja ali 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
nullptr 167 Occasional Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.