pvjc26/du5/program.c

42 lines
893 B
C

#include <stdio.h>
#include <stdlib.h>
#define SIZE 128
int main()
{
char line[] = "sdsdsd";
char answer[SIZE];
if (line[0] == 's')
{
printf("pointer test");
}
// while (1)
// {
// char* p = fgets(line, SIZE, stdin);
// if (p == NULL)
// {
// break;
// }
// else if (p == '*')
// {
// //precita a ulozi odpoved
// sscanf(answer, "%s [^\n]", &answer);
// }
// else if (p == 'n')
// {
// break;
// }
// }
// printf("Expert_z_bufetu_to_vie.\n");
// printf("Pozna 2 druhov ovocia a zeleniny\n");
// printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
// printf("Je to ovocie alebo zelenina\n");
// printf("*%s\n", answer);
// printf("koniec\n");
// exit(0);
return 0;
}