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

Explain that why C is procedural?

899


What is a void pointer in c?

844


Why use int main instead of void main?

856


How can I manipulate individual bits?

807


what is uses of .net

1471


Ow can I insert or delete a line (or record) in the middle of a file?

785


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1588


What are types of structure?

829


What is return in c programming?

721


Is the exit() function same as the return statement? Explain.

856


Is c++ based on c?

845


What are types of preprocessor in c?

814


What is function prototype?

791


Write a code of a general series where the next element is the sum of last k terms.

809


What are register variables in c?

802