0

I want to know....why do we use '%d' in C language?

7th Dec 2018, 9:14 AM
Aman Soni
Aman Soni - avatar
4 ответов
+ 16
● it is format specifier for int data type ● %d is used to format the output in C lanaguage //taking user input as integer int x; scanf("%d",&x); //printing integer type x printf("%d",x); ● have a look at this Lesson for more information about other format specifiers also : https://www.sololearn.com/learn/C/2912/
7th Dec 2018, 9:19 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 9
Its format specifier for int in c Example int f=23; printf("%d is int",f); Output: 23 is int
7th Dec 2018, 9:17 AM
Rstar
Rstar - avatar
+ 5
To show the data which is present in variable
7th Dec 2018, 10:34 AM
Yash🏁🔘
Yash🏁🔘 - avatar
+ 2
Thank you a lot friends......
12th Dec 2018, 2:58 AM
Aman Soni
Aman Soni - avatar