I made a source code in C, conditional, but when I add a function printf windows reports that the program stopped running. See the code: 1 : link
NOTE: I USE WINDOWS 7 HOME BASIC, AND MY EDITOR AND COMPILER IS DEVC ++, IF THAT INTERFERE IN SOMETHING PLEASE NOTIFY ME. AND IF IT IS A HARDWARE PROBLEM, AND SEE ALSO
#include <stdio.h>
int main(void) {
int valor = 3;
char resultado;
if(valor = 1){
resultado = 's';
}else{
resultado = 'n';
}
printf("a resposta é:%s", resultado);
}