+ 1
Why is no datatype before num1 = num2
#include <stdio.h> int main() { int num1 = 15, num2 = 100; // assign the value of num2 to num1 num1 = num2; printf("num1 is %d", num1); return 0; }
2 Answers
+ 1
Because you have already declared these variables so don't need to declare again an again
0
Thanks