+ 2
What happens when more than one variable is required and the user inputs only one variable?
4 odpowiedzi
+ 4
if more than one variable is required and only one variable is inputed then the compiler might take sone garbage value (value in the memory from some old program) or might show an error..
+ 2
it generally generates an error but if you give it a default value it will make it work good
+ 1
an error
+ 1
the computer will wait so you can input the next value, for example I want to add two integers , I declare both variables and I read them in program. after compiling I imput one number and prompter waits till I imput the second, after it outputs the sum. I f I forgot to declare the second variable but I wrote it in sum expression, an error occurs.