Ans : Extention
In windows, a(n) extension follows the file name and a period and indicates the file type.
Answer:
while (quantity >= 50)
Explanation:
Required
Stop when quantity is less than 50
To do this, we make use of a while statement and the syntax is:
while (condition){ }
If the loop should stop when quantity is less than 50; then it means the loop would continue when quantity is greater or equal to 50
So, we have:
while (quantity >= 50)
The correct answer is; " a unit of lexical meaning that underlies a set of words that are related through inflection."
Further Explanation:
The lexeme is part of the stream where the tokens are taken and identified from. When these streams become broken, there is always an error message. The lexeme is known as "the building blocks of language."
These are a very important part of computer programming. If any string or character is misplaced this can stop the entire program or operation.
One example of a lexeme is;
- the symbols (, ), and -> are for the letter C.
Learn more about computer programming at brainly.com/question/13111093
#LearnwithBrainly
Where is the attached file?
Solution :
#include
#include
#include
//Converts
to binary string.
* hexadecimal
Binary(char* hexdec)
{
long
= 0;
char *string =
(sizeof(char) * 9);
while (hexdec[i]) {
//Simply assign binary string for each hex char.
switch (hexdec[i]) {
strcat(string, "0000");
break;
strcat(string, "0001");
break;
strcat(string, "0010");
break;
strcat(string, "0011");
break;
strcat(string, "0100");
break;
strcat(string, "0101");
break;
strcat(string, "0110");
break;
strcat(string, "0111");
break;
strcat(string, "1000");
break;
strcat(string, "1001");
break;
case 'A':
case 'a':
strcat(string, "1010");
break;
case 'B':
case 'b':
strcat(string, "1011");
break;
case 'C':
case 'c':
strcat(string, "1100");
break;
case 'D':
case 'd':
strcat(string, "1101");
break;
case 'E':
case 'e':
strcat(string, "1110");
break;
case 'F':
case 'f':
strcat(string, "1111");
break;
default:
printf("\nInvalid hexadecimal digit %c",
hexdec[i]);
string="-1" ;
}
i++;
}
return string;
}
int main()
{ //Take 2 strings
char *str1 =hexadecimalToBinary("FA") ;
char *str2 =hexadecimalToBinary("12") ;
//Input 2 numbers p and n.
int p,n;
scanf("%d",&p);
scanf("%d",&n);
//keep j as length of str2
int j=strlen(str2),i;
//Now replace n digits after p of str1
for(i=0;i<n;i++){
str1[p+i]=str2[j-1-i];
}
//Now, i have used c library strtol
long ans = strtol(str1, NULL, 2);
//print result.
printf("%lx",ans);
return 0;
}