Answers for "how to printf file in c"

C
0

how to print a file c

c = fgetc(fptr); 
    while (c != EOF) 
    { 
        printf ("%c", c); 
        c = fgetc(fptr); 
    }
Posted by: Guest on May-24-2020
0

example of printf() in c

#include <stdio.h>

int addNumbers(int a, int b)
{
    int sum = a + b;
    return sum;
}

int main(void)
{
    int a = 4;
    int b = 7;

    printf(addNumbers(a,b));
    return 0;
}
Posted by: Guest on April-01-2022

Code answers related to "C"

Browse Popular Code Answers by Language