When I compile this small program instead of displaying " num1:7 , num2: 2 ", it displays " num1:-1218690218 , num2:-1217453276 ". I think that I do not specify what the program should display, so it just gives me an int range. Excuse me.
#include <stdio.h> main() { int num1 = 7, num2 = 2; printf("num1:%d , num2:%d\n"), num1, num2; }
EDIT: Thank you so much! The purpose of the exercise was to correct syntax errors, but whenever I compiled it, I never received any warnings. This bracket is easy to skip.
jrasa source share