Answers for "C printf() before scanf()"

0

C printf() before scanf()

#include <stdio.h>

int main()
{
    setvbuf(stdout, NULL, _IONBF, 0);

    int myvariable;

    printf("Enter a number:");
    scanf("%d", &myvariable);
    printf("%d", myvariable);

    return 0;
}
Posted by: Guest on April-30-2020

Browse Popular Code Answers by Language