0

Print int in c

#include <stdio.h> int main() { int k, l = 1; printf ("%k", int) ; return 0; } what's wrong in the code ?

28th Dec 2018, 6:09 AM
Zero
Zero - avatar
3 Answers
+ 3
#include <stdio.h> int main() { int k = 1, l = 1; // unused variable printf ("%d", k) ; // %d format specifier for integer value return 0; } Output: 1
28th Dec 2018, 6:41 AM
Babak
Babak - avatar
+ 1
@Kishalaya Saha thanks you right
28th Dec 2018, 7:58 AM
Zero
Zero - avatar