i modified the code a lil bit
#include<stdio.h>
#include<conio.h>
int main()
{ clrscr();
 char arr[5] = "geeks";
 printf("%s\n", arr);
 char b[1]="t";
 printf("%s\n",b);
 getchar();
 return 0;
}

the output in dis case is somewhat diff..cud someone explain...

On Thu, Aug 18, 2011 at 3:28 AM, Ayush Kapoor <[email protected]>wrote:

> There is no null character in this string,as its length is 5 and the number
> of characters is 5(Geeks),and printf("%s",arr) should output the string till
> the null character
>
>
> On Thu, Aug 18, 2011 at 2:40 AM, bihari <[email protected]> wrote:
>
>> upto null charchter..............
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>>
>
>
> --
> Ayush
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to