fork download
  1. // Mar 26, 2017
  2. // Eric C. Mattoon
  3. // CMIS Lab 6
  4. // Exercise 4: This will show what happens if more than 100 char are
  5. // entered into an array of 100. Input will be 100 a's
  6. // with the 101st character as Z
  7. #include <stdio.h>
  8. int main(void) {
  9. char StudentName[100];
  10. printf("Enter Student name \n");
  11. scanf("%d",StudentName);
  12. printf("The student name is: ",StudentName);
  13. return 0;
  14. }
Success #stdin #stdout 0s 9432KB
stdin
Eric
stdout
Enter Student name 
The student name is: