Automatic, register, external, static
The storage class specifiers in C and C++ are:autoexternmutableregisterstatictypedefA storage class specifier is used to refine the declaration of a variable, a function, and parameters
Different from what? Storage classes are auto, register, static, extern and typedef (formally).
automatic storage class
There are four types of storage class or variable in c. 1) auto storage class. 2) register storage class. 3) static storage class. 4) external storage class.
advantage of storage classes
You cannot. Class diagrams are only applicable to object oriented programming languages. C is not object oriented, but C++ is.
C is not an object-oriented programming language. As such there is no such thing as an object or a class in C programming. C++ is the object-oriented version of C (originally known as C with Classes). The two are separate languages that share a common syntax. A class is a datatype, much like a struct in C, except that you can define functions as members as well as data. An object is an instance of a class.
B. Class.
Storage class specifier.
How can we make sure (pragmatically) that a class will have no further child classes. Which programming stmt will do this in Java and C++?
We don't. The auto storage class is the default storage class for all local variables and is therefore completely redundant in C. It exists for no other reason than that C evolved from B and inherited all its storage classes (auto, static, extern and register).
Class acts as an encapsulation of attributes and methods, that is used by an object oriented programming (OOP) language. Since C is not an OOP, its a structural programming language, one can not create classes in C. That is why OOP version of C was developed called C++, where one can work with classes.