What is a symbolic constant?



What is a symbolic constant?..

Answer / venkata mahesh

We can define constants of any type by using the #define
compiler directive. Its syntax is simple--for instance

#define ANGLE_MIN 0
#define ANGLE_MAX 360

would define ANGLE_MIN and ANGLE_MAX to the values 0 and
360, respectively. C distinguishes between lowercase and
uppercase letters in variable names. It is customary to use
capital letters in defining global constants.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More C Interview Questions

#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }

1 Answers  


Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol

0 Answers  


Write a program in C for showing working of different logical operator in C. Your program should guide users with proper message/menu on the console.

3 Answers   HCL,


What is conio h in c?

0 Answers  


how to write optimum code to divide a 50 digit number with a 25 digit number??

0 Answers   MGM,






write a program to find the number of even integers and odd integers in a given array in c language

13 Answers   IAI Cameroun, NIIT, Olive Tech, QIS,


What is difference between function overloading and operator overloading?

0 Answers  


What are the 4 types of organizational structures?

0 Answers  


A program to allow an input operand and operator from the operator and read on the display and output operand.

0 Answers  


What is the purpose of type declarations?

0 Answers  


How do you determine the length of a string value that was stored in a variable?

0 Answers  


main() { int i; printf("%d",i^i); }

1 Answers  


Categories