mercredi 22 janvier 2020

why does my code output an improper value?

this is my code in C:-

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int a=300, b, c;
    if(a>=400)
        b=300;
    c=200;
    printf("%c %d\n", b, c);
    return 0;
}

it returns a value 57 200. which doesn't even represent ascii values. what is happening

Aucun commentaire:

Enregistrer un commentaire