Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Explain the Symbolic Constants in c language?
Symbolic constants are the constants of any type that declared by using the #define compiler directive and it is a preprocessor directive. The Preprocessor' is a translation phase that is applied to your source code before the compiler proper gets its hands on it. Usually the preprocessor performs textual substitutions on your source code. Macro is a kind of preprocessor which replaces instances of one piece of text with another.
The preprocessor line shown below defines symbolic constant
#define name text
Defines the macro with the given name having as its value the given replacement text. Subsequent to that (for the rest of the current source file) wherever the preprocessor sees that name it will replace it with the replacement text.
Its general syntax is as shown below
#define ANGLE_MIN 0 #define ANGLE_MAX 360
It would define ANGLE_MIN and ANGLE_MAX to the values 0 and 360 respectively and C distinguishes between uppercase and lowercase letters in variable names and it is customary to use capital letters in defining symbolic constants.
F u nction Returning Object: This program is like to the previous program except the function returns object. The main rule to be remembered is the function returning obj
#include stdio.h> #include conio.h> #include string.h> void del(char[],char *); main() { char str[30],ch,*pp; clrscr(); p
The Malt Shop restaurant charges $2.99 for burgers, $1.29 for fries, and $1.25 for sodas. Write a program that allows a restaurant employee to enter an order (the number of bur
Write a program to process bank accounts. Create a base class named Account and two derived classes named Savings and Checking. In the base class, use an int AccountNum and a dou
A more advanced data type is the structure; here we can define a template as a collection of different variables e.g. struct birthdate { int month; int day;
MAT LAB programming Project Description: Just for who are PROFESSIONAL IN MATLAB i have simulation and i would like to simulate the equation in ,and test the all simulatio
Program is to define a class as teacher: Program is to define a class as teacher and collect information about them by using classes and object class teacher { pr
E x p r e s sion and their types: An expression will be in form of mathematical expression with C++ syntax embedded with it. Expressions are of following types which m
Define the Data Type Qualifiers in c Language? 1. const 2. volatile const: The const qualifier is used to tell C that the variable value can't change after initialization.
Write a function that calculates the number of elapsed days between two dates. For example the days between Feb 3, 1970 and June 21, 1980? Becareful for the Leap year.
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd