Click here to Skip to main content
12,067,916 members (30,586 online)
Click here to Skip to main content

Tagged as

C

Stats

1.2K views
Posted

C Do While with character variables

, 4 Nov 2012 CPOL
why this Code is Not Working void main() { char op; do { printf("Hello "); printf("\nPress Y for continue and N for Exit"); scanf("%c",&op); }while(op == 'Y' || op == 'y'); }plz help me out similar code will working if i take op as integer...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 5-Nov-12 2:41 Available OriginalGriff
Updates in content. 41 changes had been made.
1 No 5-Nov-12 2:18 Available Rohit Pandit

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Rohit Pandit
United States United States
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.160208.1 | Last Updated 5 Nov 2012
Article Copyright 2012 by Rohit Pandit
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid