Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

MailingList

Language: Layout:
+ ] Compiler args - ] Show input
Compilation time: 0.12 sec, absolute running time: 0.16 sec, cpu time: 0.01 sec, memory peak: 5 Mb, absolute service time: 0,46 sec  
edit mode |  history  | discussion
Warning(s):
415233162/source.c: In function ‘enter’:
415233162/source.c:24:1: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
 scanf("%s\t%s\t%d\t%d\t%d\n",m[k].name,m[k].city,&m[k].house,&m[k].road, &m[k].code);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
415233162/source.c: In function ‘search’:
415233162/source.c:42:1: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
 scanf("%s",name);
 ^~~~~~~~~~~~~~~~
415233162/source.c: In function ‘main’:
415233162/source.c:66:1: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&choice);
 ^~~~~~~~~~~~~~~~~~~
 (1)Enter (2) Search (3) Display (4)Quit

Enter name,city, house,road and postal code:
name	city	house	road	code:
AA	CC	1	2	3
BB	DD	3	4	5
EE	TT	5	6	7
name:Item found:
name	city	house	road	code:
EE	TT	5	6	7
name:Item not found.
name	city	house	road	code:
AA	CC	1	2	3
BB	DD	3	4	5
EE	TT	5	6	7