answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How do you declare symbolic constant?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are symbolic constants?

A symbolic constant is a constant with a name, numeric constants are unnamed and must be retyped in the code on each usage. Generally use of symbolic constants is preferred as it makes the code self documenting and allows the compiler to catch typing errors in constant usage.


What is the symbolic meaning of sprengeri fern?

constant love


How do you use define in C?

Just type declare then the variable that you desire to assigned a certain constant value on it. Just type declare then the variable that you desire to assigned a certain constant value on it.


Can you declare constructor as constant if yes why?

Constructors are implicitly constant members of a class. They do not modify objects, rather they initialize them. So constant and not constant objects can invoke them: const MyClass object; // invokes MyClass::MyClass() constructor


What is a symbol representing value that doesn't change?

It is often represented by c for constant or k for its phonetic equivalent. But as long as you declare it as a constant, any symbol will do.


How would you declare a constant of 5 called MYCONST?

A constant of 5 called MYCONST would be declared as #define MYCONST 5. This is because the statement used is a define statement.


How do you declare a string and character constant?

public static final String WELCOME_MESSAGE = "Hello, welcome to the server";


How do you declare and initialize constant arrays?

example in C: const int a [] = {10, 20, 40, 80};


How do you declare a constant?

use: define("GREETING", "Hello you.", true); 1st parameter is the name for your constant 2nd parameter is the value of that constant 3rd parameter is whether or not you want the constant to be case-insensitive. Default is case sensitive. http://php.net/manual/en/function.define.php


Why is no red allowed to show when the American flag is folded?

Red is symbolic for the bloodshed and because it is a constant reminder of the loss and pain it is not shown.


What is a symbolic constant in c language?

symbolic constants are constants represented by symbols.... constants are values that does not change through out the program execution. e.g #include<stdio.h> #include<conio.h> #define NUM 15 void main() { int a=NUM; printf("The constant is %d",a); getch(); } here #define is a preprocessor. its job is to replace all the entries named NUM as 15. So that the compiler works with the constant 15...


What did the Romans sow in the Carthaginians fields?

They had a religious ceremony where they spread salt in a short plough farrow to declare a symbolic end to Carthage as a city-state, after selling its people into slavery.