5 Computer -- Programming II

Write a C program to read salary of 300 employees and count the number of employee getting salary between 30000 to 50000.

Write a C program to read salary of 300 employees and count the number of employee getting salary between 30000 to 50000.

More questions on Programming II

Differentiate between structure and union.

Structures in Cis a user-defined data type available in C that allows to combining of data items of different kinds. Structures are used to represent a record.

Defining a structure:To define astructure, you must use thestructstatement. The struct statement defines a newdata type, with more than or equal to one member. The format of the struct statement is as follows:

struct [structure name] { member definition; member definition; ... member definition; }; (OR) struct [structure name] { member...
Close Open App