Question1: Explain what is const qualifier? Ans : The const qualifier is used with a data type of declaration to specify a constant value. Some examples of const qualifiers are: Const int COUNT=5; Const float PI=3.14; The same thing can also be achieved using #define preprocessor as given below. #define COUNT 5 #define PI 3.14 In most of the situations there is no difference between using define or const qualifier. The only difference is define is a preprocessor directive that simply replaces a symbol with a constant value throughout the program. The const qualifier declares a variable type and assigns it a constant value. It has advantage at advance level of programming in C language.
Sialkot is a city in Punjab , Pakistan. It is the capital city of Sialkot District . It is Pakistan's 13th most populous city and is located in north-east Punjab—one of Pakistan's most industrialized regions. Along with the nearby cities of Gujranwala and Gujrat , Sialkot forms part of the so-called "Golden Triangle" of industrial cities with export-oriented economies. Through exports, Sialkot-based industries are obtaining foreign exchange to more than $2.5 billion annually to strengthen the national exchequer. Sialkot is believed to be the site of ancient Sagala , a city razed by Alexander the Great in 326 BCE, and then made capital of the Indo-Greek kingdom by Menander I in the 2nd century BCE—a time during which the city greatly prospered as a major center for trade and Buddhist thought . Sialkot continued to be a major political center, until it was eclipsed by Lahore...
Comments
Post a Comment