Printing a variable from a C routine [closed]
I do not know how to use "C", but have a working C program that I need to print a program variable to determine what the program is doing. Can you tell me the easiest way to do this Jack
to print on stdout use printf
function from stdio.h
To watch the values of a particular variable in Turbo c (windows)
Window-> watch -> enter your variable name. Then Press F7.
You can able to keep track the value of the variable.
精彩评论