answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: What are Two rules when using identifiers for variables?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you show the relationship between two variables?

you cant because variables cant go ou its agaist the rules


Are addition and subtraction variables?

No, they are binary operators. Two numbers (or variables) are combined, according rules of operation to give a single answer.


What are the rules of creating identifier?

Identifiers refers to the names of variables, functions and array. These are user defined names and consist of a sequence of letters and digits, with a letters as a first character.Both uppercase and lowercase letters are permitted, although lowercase letters are commonly used. The underscore character is also permitted in identifiers. It is usually used as a link between two words in long identifiers. In C, identifiers may contain any alphanumeric characters (a-z, A-Z, 0-9) as well as underscores (_), but must not begin with a number.


How do you write a program in C plus plus plus plus How do you write a program in C to swap two variables without using the third oneo swap two variables without using the third one?

To swap two variables without using a third variable, use exclusive or manipulation... a ^= b; b ^= a; a ^= b;


Differentiate keywords and identifiers in C programming?

keywords:- every word in a c program is either a keyword or an identifier. All keywords are basically the sequences of characters that have one or fixed meanings. And these meanings in any circumtances , can't be changed. All c keywords must be written in lowercase (small) letters. eg:- auto, break ,case, char, const, do, if ,double, else .....etc identifiers:- identifiers r names given to program elements such as variables , arrays & functions. Basically identifers r the sequences of alphabets or digits. Rules for forming identifier name * the first character must be analphabet (uppercase or lowercase) or an underscore * all succeeding characters must be letters or digits. * no special characters or punctuatio symbols are allowed except the underscore"_". * no two successive underscores are allowed. * keywords shouln't be used as identifiers.


How do you swap two variables using airthematic operators?

a += b; b -= a; a -= b;


How do you write a program in Perl to swap two variables without using the third one?

Use list assignment i.e. for two variables $a, $b: ($a,$b) = ($b,$a)


A program that executes in c but not in c plus plus?

The logic to create such programs is very simple. We know that rules of programming languages. Among them the most important one is "We should not use keywords as identifiers". Based on this rule we can create many programs that execute in c but not in cpp. Suppose write a program to and two numbers. Store the two values in two variables, name the variables as class and object. then execute in c. it will produce the output, and do the same thing in cpp, it will give two errors. because we used keywords as identifiers in cpp. ex:-#include<stdio.h> #include<conio.h> void main() { int class=10,object=26,res; res=class+object; printf("%d",res); getch(); } Or: char str3[3] = "ABC"; /* doesn't compile in C */


What is the advantage of swapping two variables without using 3 variable?

Nothing. Never do that.


How do I create and inequality using absolute values with two variables?

x>|7| + |8|


What is scattered plot?

A scatter plot or scattergraph is a type of mathematical diagram using Cartesian coordinates to display values for two variables for a set of data.


How do you compute the probability distribution of a function of two Poisson random variables?

we compute it by using their differences