![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |||
| [SOLVED] can anybody explain me the output of the following c program ?? #include<stdio.h> void main() { int no; char name[15]; printf("\nEnter the number and the name\n"); scanf("%d %15c",&no,name); printf("%d %15s",no,name); } in this program when i input the data as folows 1 123456789012345 the answer comes in the following form 1 123456789012345%@ i am not able to understand the occurence of the last two characters in the output..they get generated in random and may be anything..,, can anybody explain me why this happens??? |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |