Answers for "how to print a long int in c"

C
8

how to print int in c

#include <stdio.h>
int main() {   
    int number;   
    printf("Enter an integer: ");  
    scanf("%d", &number);
    printf("You entered: %d", number);    
    return 0;
}
Posted by: Guest on June-13-2020
4

c print long

unsigned long n;
long m;

printf("%lu %ld", n, m);
Posted by: Guest on October-18-2020
0

printf data types c

c	Character
d or i	Signed decimal integer
e	Scientific notation (mantissa/exponent) using e character
E	Scientific notation (mantissa/exponent) using E character
f	Decimal floating point
g	Uses the shorter of %e or %f
G	Uses the shorter of %E or %f
o	Signed octal
s	String of characters
u	Unsigned decimal integer
x	Unsigned hexadecimal integer
X	Unsigned hexadecimal integer (capital letters)
p	Pointer address
n	Nothing printed
%	Character
Posted by: Guest on February-21-2021

Code answers related to "C"

Browse Popular Code Answers by Language