In this tutorial i will be telling you that how you can print the value of a variable in C programming language very easily.
In order to print the value of any variable in c programming language we use an access modifier to print out the value of variable on the console.
let's see how to print the value of a variable in c programming language with an example.
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a=5,b=7;
printf("value of a is %d and value of b is %d",a,b); // %d is an access modifier to print integer
return 0; value in c programming language//
}
output of this program will be: value of a is 5 and value of b is 7
No comments:
Post a Comment