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

Are local variables initialized to zero by default in c?

541


how to find binary of number?

3413


please give me some tips for the placement in the TCS.

1623


Write a program to reverse a string.

628


What are the 5 data types?

590






What does it mean when a pointer is used in an if statement?

594


What is the difference between char array and char pointer?

519


What is the difference between near, far and huge pointers?

624


Explain what is the concatenation operator?

615


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2212


Which type of language is c?

640


How many keywords (reserve words) are in c?

603


What is the difference between c and python?

573


What is the difference between void main and main in c?

613


Does * p ++ increment p or what it points to?

601