Computer Science, asked by gk9910138422p29zbt, 1 year ago

What will be the value of counter and num after the execution of the following program.
Void main()
{
Int counter=1;
Int digit=0,num=2;
While (digit <=10)
{
++counter;
num++;
++ digit;
Cout < Cout < }
}

Answers

Answered by anirbanroy
3
Value of num will be 13 and that of  counter will be 12.

gk9910138422p29zbt: What will be the output of the following C++ code? 
# include 
# include 
Void main () 
{
Char A [100];
Char B [160];
Cout <<"input string";
Gets (A);
Puts (A);
Cout <<"input new string";
Gets (B);
Strcpy (A,B);
Cout <<"final string is "< 
gk9910138422p29zbt: please answer this question
Answered by pmv
0
value of num be 13 and counter is 12
Similar questions