Mega Code Archive

 
Categories / C / Stdio H
 

Printf %ld for long integer number

#include <stdio.h> int main() {    char *phraseTwo = "Here's some values: ";    char *phraseThree = " and also these: ";    int y = 7, z = 35;    long longVar = 98456;    float floatVar =  8.8;    printf("%s %d %d %s %ld %f\n",phraseTwo,y,z,phraseThree,longVar,floatVar);    return 0; }