#include<stdio.h>
#include<string.h>
int main() {
char str1[100];
char str2[100];
printf("\nEnter the String 1 : ");
gets(str1);
strcpy(str2, str1);
printf("\nCopied String : %s", str2);
return (0);
}
Answer:
50%
Explanation:
<u>Given information</u>
Cooling load=50 kW
COP=2
Consumption=50 kW
<u>Calculations</u>
Revised input is given by cooling load/COP=50/2=25 kW
Efficiency= Work output/ Revised input=25/50=0.5
Efficiency=0.5*100=50%
Answer:
The given grammar is :
S = T V ;
V = C X
X = , V | ε
T = float | double
C = z | w
1.
Nullable variables are the variables which generate ε ( epsilon ) after one or more steps.
From the given grammar,
Nullable variable is X as it generates ε ( epsilon ) in the production rule : X -> ε.
No other variables generate variable X or ε.
So, only variable X is nullable.
2.
First of nullable variable X is First (X ) = , and ε (epsilon).
L.H.S.
The first of other varibles are :
First (S) = {float, double }
First (T) = {float, double }
First (V) = {z, w}
First (C) = {z, w}
R.H.S.
First (T V ; ) = {float, double }
First ( C X ) = {z, w}
First (, V) = ,
First ( ε ) = ε
First (float) = float
First (double) = double
First (z) = z
First (w) = w
Explanation:
Answer:
#WeirdestQuestionOfAllTime
Explanation: