Ask Question - Get Answer

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

Asked by Birds of the sky (1 Gold) Saturday, 02 Jan 2021, 05:28 PM 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 (1 Gold) Saturday, 02 Jan 2021, 05:28 PM

Please log in to Upvote, Downvote and Report
           

Related Q/A:

1 Ans Best Web development site in the internet ?

1 Ans Write a C Program to find factorial using recursion

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

1 Ans Write a C++ program for BigMod math

1 Ans Write a C program to check Bubble sort data structure and algorithm

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

1 Ans Write a C program to check a Palindrome Number

1 Ans Write a C Program to check Anagrams of two strings

1 Ans A C Program to split a number into digits

1 Ans Write a C program to print Floyd Triangle


AL MaMun active 3 days ago (4 Golds)
Birds of the sky active one day ago (1 Gold)
Tajrimun Elisha (active on Friday, 22 Nov 2019, 08:56 AM) (2 Golds)
Hena Begum (active on Friday, 15 Feb 2019, 11:04 PM) (8 Bronzes)
Ghost (active on Saturday, 05 Jan 2019, 10:37 AM) (1 Silver)
BrandonDug (active on Thursday, 17 Dec 2020, 05:25 AM) ( New Contributor )
Md Hasan (active on Saturday, 02 Nov 2019, 10:02 AM) (4 Bronzes)
APU KUMAR ROY (active on Sunday, 22 Sep 2019, 02:42 AM) (1 Bronze)
Md Mondol (active on Tuesday, 23 Jul 2019, 10:28 PM) (2 Bronzes)
student (active on Monday, 27 Jul 2020, 07:28 PM) (2 Bronzes)
Abdul Halim (active on Thursday, 03 Oct 2019, 05:36 PM) ( New Contributor )
GoMedii (active on Monday, 21 Dec 2020, 02:28 PM) ( New Contributor )
Hazrat (active on Sunday, 26 May 2019, 05:55 AM) (2 Bronzes)
Shahansha Habib (active on Monday, 21 Oct 2019, 04:09 PM) (2 Bronzes)
عبد الحنان سلفي (active on Friday, 28 Aug 2020, 05:04 PM) (2 Bronzes)
Sowrov (active on Thursday, 14 Feb 2019, 10:48 AM) (7 Bronzes)
MD SAIFUL ISLAM (active on Friday, 24 Jan 2020, 04:13 PM) ( New Contributor )
Daily Science (active on Friday, 03 Jan 2020, 07:52 PM) ( New Contributor )
Arif Hossain (active on Tuesday, 08 Jan 2019, 11:59 PM) (3 Silvers)
Hr Hannan (active on Tuesday, 11 Dec 2018, 12:28 PM) (2 Bronzes)
Show All Members

Online Now 1
Today's Unique PageViews 441
Today's Total PageViews 2215
Site's Total PageViews 2165301