Click here to Skip to main content
11,806,575 members (40,443 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

C Do While with character variables

, 4 Nov 2012 CPOL 1.1K
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...



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


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


About the Author

Rohit Pandit
United States United States
No Biography provided

You may also be interested in...

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