baby_1
Advanced Member level 1
hello
why this code works fine when i type name more than 10 character (for example 20 character ?)
i wrote it in Dev c++ compiler
if i program it in a PIC micro controller how is works?
why this code works fine when i type name more than 10 character (for example 20 character ?)
i wrote it in Dev c++ compiler
Code:
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <math.h>
#include <string.h>
char baby[10];
int main(void)
{
printf("Please Enter your Name:");
gets(baby);
printf("Hello Mr.%s",baby);
gets(baby);
}
if i program it in a PIC micro controller how is works?