Union is an user defined datatype in C programming language . It is a collection of variables of different datatypes in the same memory location. We can define a union with many members, but at a given point of time only one member can contain a value.
Read moreHow do you print a string in C?
To print any string in C programming, use printf() function with format specifier %s as shown here in the following program. To scan or get any string from user, you can use either scanf() or gets() function.
Read moreWhich data structure you will use to store detailed information of student?
In computing, a hash table (also hash map) is a data structure used to implement an associative array, a structure that can map keys to values. A hash table uses a hash function to compute an index into an array of buckets or slots, from which the correct value can be found.
Read moreWhat is nested structure in C?
A nested structure in C is a structure within structure . One structure can be declared inside another structure in the same way structure members are declared inside a structure. Syntax: struct name_1.
Read moreWhat are struct used for in C?
struct keyword is used to define a structure . struct defines a new data type which is a collection of primary and derived data types.
Read moreWhat structure write a program to store the record of 5 students?
Using a for loop , the program takes the information of 5 students from the user and stores it in the array of structure.
Read more