![]() |
Problem with variable input in C program I have a problem with the real variable. i can put age on the console instead of 20 in the course of the variables. Code: # include <stdio.h> |
Re: Problem with variable input in C program do not pass the address instead of the value of your variable Code: int age = 0; |
Re: Problem with variable input in C program in Line 9, we should not put the ampersand to 'age' as% printf expects a value, not an address. This is what your declaration does not boot you if your variable are not declared. |
All times are GMT +5.5. The time now is 11:16 AM. |