Question:Write a c program to find size of structure without using sizeof operator? 

Answer Explanation:
struct  ABC{
    int a;
    float b;
    char c;
};
int main(){
    struct ABC *ptr=(struct ABC *)0;
    ptr++;
    printf("Size of structure is: %d",*ptr);
    return 0;
}
 

+ Report
Total Preview: 891
Write a c program to find size of structure without using sizeof operator?
Copyright © 2024. Powered by Intellect Software Ltd