How can I implement opaque (abstract) data types in C?
What's the difference between these two declarations?

struct x1 { ... };
typedef struct { ... } x2;

Answer Posted / phani kumar s

using the structures and the pointers
n structures the memory will be allocated for each object at
different locations struct x1 { ... };

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a ternary operator in c?

875


Define Spanning-Tree Protocol (STP)

899


What is a union?

822


Is int a keyword in c?

750


Explain what is the general form of a c program?

843


What are local static variables?

873


int i=10; printf("%d %d %d", i, i=20, i);

1334


find the sum of two matrices and WAP for it.

909


What is scope and lifetime of a variable in c?

807


I need previous papers of CSC.......plz help out by posting them.......

2100


What are the salient features of c languages?

877


What are different types of operators?

806


What does node * mean?

988


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

872


What is time complexity c?

774