
Code:

Output:

note:
here 'a' is name of 'int' type variable you can give any name.
with in 'printf ' you have to put '%d' & variable name 'a'

note:
2 kind uses of printf:
printf("Hello world"); output: Hello world printf("%d",a); output: 5(value of a)
Code:

Output:

No comments:
Post a Comment