71. What is the use of a semicolon (;) at the end of every program statement?
Answer : It has to do with the parsing process and compilation of the code. A semicolon acts as a delimiter, so that the compiler knows where each statement ends, and can proceed to divide the statement into smaller elements for syntax checking.
72. What is the difference between c and c++?
Answer : Even though C and C++ programming languages are belonging to middle level languages, both are differed in below.
C is structure/procedure oriented programming language whereas C++ is object oriented programming language.
C language program design is top down approach whereas C++ is using bottom up approach.
Polymorphism, virtual function, inheritance, Operator overloading, namespace concepts are not available in C programming language. Whereas C++ language supports all these concepts and features.
C language gives importance to functions rather than data. Whereas C++ gives importance to data rather than functions.
So, data and function mapping is difficult in C. But, data and function mapping is simple in C++ that can be done using objects.
C language does not support user define data types. Whereas C++ supports user define data types.
Exception handling is not present in C programming language. Whereas exception handling is present in C++ language.
C language allows data to freely flow around the functions. But, data and functions are bound together in C++ which does not allow data to freely flow around the functions.
74. What is ide?
Answer : IDE is nothing but Integrated Development Environment. IDE is a tool that provides user interface with compilers to create, compile and execute C programs.
75. What is the use of sizeof() function in C?
Answer : sizeof() function is used to find the memory space allocated for each data type in C.