Notice the input string value shown:
I wrote the following code:
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#define MAX 50
int main()
{
printf("\nEnter string:");
char input[MAX];
gets(input);
puts(input);
return 0;
}
I entered "(A+B)*C" as input. But why does the debugger show extra characters?
Shouldn't it be just \0 at the end?
