Prepare for your Next Interview
|
Welcome to the Geeks Talk 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. |
This is a discussion on charatar pointer within the C and C++ forums, part of the Software Development category; #include "stdio.h" #include "string.h" void main() { char *str1="chet "; while(str1 != NULL) { printf("\nGO IN\n"); str1+=1; } } i am cheking NULL to come out of loop, but it ...
|
|||||||
|
|||
|
charatar pointer
#include "stdio.h"
#include "string.h" void main() { char *str1="chet "; while(str1 != NULL) { printf("\nGO IN\n"); str1+=1; } } i am cheking NULL to come out of loop, but it is going in infinite loop. how it can come out and why it is not working |
| Sponsored Links |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pointer---? | amaresh_83 | C and C++ | 6 | 03-22-2009 03:14 AM |
| Pointer Question | bee896 | C and C++ | 3 | 02-14-2009 04:15 PM |
| far pointer | anshu19 | C and C++ | 0 | 11-20-2008 10:47 PM |
| far pointer | jaiprabuk | C and C++ | 0 | 05-27-2008 01:56 AM |
| Delegate and pointer | Geek_Guest | VB.NET | 1 | 09-27-2007 03:21 AM |