answersLogoWhite

0

Is A N D is an identifier?

Updated: 9/14/2023
User Avatar

Wiki User

14y ago

Best Answer

A N D is not an identifier as it has spaces in between each letter. A valid identifier DOES NOT have space in it.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is A N D is an identifier?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How implemention of election algorithm in c plus plus language?

#include<stdio.h> #include<conio.h> #include<process.h> struct proc { int live; int identifier; }process[10]; int n,cordinator=1; /******************* DISPLAY PROCESSES **********************/ void display() { int i; printf("\n PROCESSES ARE\n\n"); printf("Processes "); for(i=1;i<=n;i++) { printf("P%d\t",i); } printf("\nlive "); for(i=1;i<=n;i++) { printf("%d\t",process[i].live); } printf("\nidentifier "); for(i=1;i<=n;i++) { printf("%d\t",process[i].identifier); } } /************ BULLY ALGORITHM ****************************/ void bully() { int ch,c,id,i=0,cordinator,init,max=-99; cordinator=i; for(i=1;i<=n;i++) { if(process[cordinator].identifier<process[i].identifier&& process[i].live==1) cordinator=i; } printf("\n\n CURRENT CO-ORDINATOR IS=P%d",cordinator); while(ch!=4) { printf("\n\n\n *** BULLY ALGORITHM ***"); printf("\n1.Crash a Process\n2.Activate Process\n3.Display\n4.Exit"); printf("\nENTER UR CHOICE"); scanf("%d",&ch); switch(ch) { case 1:printf("\n Enter the process id to crash"); scanf("%d",&id); if(process[id].live==0) { printf("\n Already crashed process"); } else { process[id].live=0; printf("\n process P%d is crashed",id); if(id==cordinator) { while(1) { printf("\n Enter process id who intiates election"); scanf("%d",&init); if(process[init].live==0) { printf("\n the selected process is crashed"); } else { for(i=1;i<=n;i++) { if(i!=init&& process[i].identifier>process[init].identifier) printf("\n Election MSG sent from %d to %d",init,i); } for(i=1;i<=n;i++) { if(i!=init) { if(process[i].identifier>process[init].identifier&&process[i].live!=0) { printf("\n OK from %d to %d",i,init); } } } for(i=1;i<=n;i++) { if(max<process[i].identifier && process[i].live!=0) { cordinator=i; max=process[i].identifier; } } printf("\n\n NEW CO-ORDINATOR IS=P%d",cordinator); break; } } } } break; case 2:printf("\n Enter process id to activate"); scanf("%d",&id); if(process[id].live==1) { printf("\n Process %d is already active",id); } else { process[id].live=1; printf("\n Process %d activated",id); } if(process[id].identifier>process[cordinator].identifier) {cordinator=id; printf("\n NEW CO-ORDINATOR IS=P%d\n\n",id); } break; case 3:display(); break; case 4:break; } } } /************ RING ALGORITHM ****************************/ void ring() { int ch,c,id,i=0,init,max=-99,last; // cordinator=i; for(i=1;i<=n;i++) { if(process[cordinator].identifier<process[i].identifier&&process[i].live==1) cordinator=i; } printf("\n\n CURRENT CO-ORDINATOR IS=P%d",cordinator); while(ch!=4) { printf("\n\n\n *** RING ALGORITHM ***"); printf("\n1.Crash a Process\n2.Activate Process\n3.Display\n4.Exit"); printf("\nENTER UR CHOICE"); scanf("%d",&ch); switch(ch) { case 1:printf("\n Enter the process id to crash"); scanf("%d",&id); if(process[id].live==0) { printf("\n Already crashed process"); } else { process[id].live=0; printf("\n process P%d is crashed",id); if(id==cordinator) { while(1) { printf("\n Enter process id who intiates election"); scanf("%d",&init); if(process[init].live==0) { printf("\n the selected process is crashed"); } else { last=init; printf("\nElection MSG sent from =%d",last); for(i=init+1;i<=n;i++) { if(i!=init) printf(" ->%d",i); } for(i=1;i<init;i++) { if(i!=init) printf("->%d",i); last=i; } /* for(i=1;i<=n;i++) { if(i!=init) { if(process[i].identifier>process[init].identifier&&process[i].live!=0) { printf("\n OK from %d to %d",i,init); } } } */ // max=process[init].identifier; for(i=init+1;i<=n;i++) { if(max<process[i].identifier && process[i].live==1) { cordinator=i; max=process[i].identifier; } } for(i=1;i<=init;i++) { if(max<process[i].identifier && process[i].live==1) { cordinator=i; max=process[i].identifier; } } printf("\n\n NEW CO-ORDINATOR IS=P%d",cordinator); break; } } } } break; case 2:printf("\n Enter process id to activate"); scanf("%d",&id); if(process[id].live==1) { printf("\n Process %d is already active",id); } else { process[id].live=1; printf("\n Process %d activated",id); if(process[id].identifier>process[cordinator].identifier) { printf("\n NEW CO-ORDINATOR IS=P%d\n\n",id); cordinator=id; } } break; case 3:display(); break; case 4:break; } } } void main() { int ch,i,c; clrscr(); printf("\n ENTER NO. OF PROCESSES"); scanf("%d",&n); for(i=1;i<=n;i++) { printf("\nEnter P%d process live or not(0/1)",i); scanf("%d",&process[i].live); printf("\nEnter P%d process identifier",i); scanf("%d",&process[i].identifier); } display(); while(1) { printf("\n\n\n**** ELECTION ALGORITHM ****"); printf("\n1.BULLY ALGORITHM\n2.RING ALGORITHM\n3.EXIT"); printf("\n\n ENTER UR CHOICE"); scanf("%d",&ch); switch(ch) { case 1:bully(); break; case 2: ring(); break; case 3:exit(0); } } }


What is the size of an identifier declared as integer in C?

int myvar; printf ("size of myvar is %d\n", (int)sizeof (myvar));


A tag name is an identifier that links a(n) to a source?

a tag name is an identifier that links a what to a source?


What is the meaning of n and 1 in C programming?

'n' can be an identifier, '1' is a digit


What is the balance identifier for the reimbursement accounting stages?

D, f, r


The balance identifier BID for the undelivered orders outstanding stage of accounting is?

Not "d"


The balance identifier BID for the undelivered orders outstanding UOO stage of accounting is?

Not "d"


Is a primary key a unique identifier?

NO, unique identifier allows null values.. so u dont called as primary key... primary key means it doesn't allow null n repeated values.... so we dont call unqiue identifier is a primary key...


How do you get the square of an integer in PHP?

printf ("square of %d is %d\n", $n, $n*$n);


A faction in witch the numbers is greater than or equal to the denominator?

Suppose the number is n/d. Then n/d >= d => n <= d2 if d < 0 or n >= d2 if d > 0.


L N G E D N A?

E N G L A N D


12 equals N in a D?

12=n in a d