Ask Question - Get Answer

1 Ans The general rules for constructing names for variables (unique identifiers)

Asked by Birds of the sky (2 Golds) Sunday, 03 Jan 2021, 04:28 AM at (Education Tutorials)

Please log in to answer, like and save
1
Save 0

<<< Previous
Log in to Answer Next >>>

Answer(s):

The general rules for constructing names for variables (unique identifiers) are - 

  • Names can contain letters, digits and underscores
  • Names must begin with a letter or an underscore (_)
  • Names are case sensitive (myVar and myvar are different variables)
  • Names cannot contain whitespaces or special characters like !, #, %, etc.
  • Reserved words (like C++ keywords, such as int) cannot be used as names

Answered by Birds of the sky (2 Golds) Sunday, 03 Jan 2021, 04:28 AM

Please log in to Upvote, Downvote and Report
           

Related Q/A:

3 Ans BPSC Assistant Programmer Lab Aptitude test Programs and Queries with Proper solution (Taken By BCC)

2 Ans Write a C program to implement Selection sort data structure and algorithm

1 Ans How to Learn HTML - HyperText Markup Language easily? 

2 Ans BPSC Programming Aptitude Lab Test Important programs

1 Ans Write a C program to Find Armstrong Number series upto a Number

1 Ans A C Program to split a number into digits

1 Ans Which is the best and easy C programming learning website ?

1 Ans Single Digit Interest Rate in the Banking Sector: Problems and Prospects - essay writing

1 Ans Write a C program to find the highest and lowest number in a series

1 Ans Write a C program for Interest Calculation