Hey all,
I have a doubt .
what if there is no xor operator..
what if it is simply %[india]..how it behaves?
--
Regards
Ramya
*
*
*Try to learn something about everything and everything about something*
--
You received this message because you are subscribed to the Google Groups
Algorithm
it prints the first n characters of the string that matches any character of
india. The printing stops as soon as the first character different from
the characters of india is encountered.
On Mon, Aug 1, 2011 at 9:36 PM, ramya reddy rmy.re...@gmail.com wrote:
Hey all,
I have a doubt .
what
@ prateek
got ittanks
Regards
Ramya
*
*
*Try to learn something about everything and everything about something*
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To
@rajeev
i ran dis code
int main()
{
char str[80];
strcpy(str,siva);
scanf(%[^india],str);
printf(%s,str);
return 0;
}
and i got the output as siva...instead of s as expected...can u plz point
out the error
On Tue, Jul 26, 2011 at 11:21 PM, siva viknesh sivavikne...@gmail.comwrote:
@aditi : What is the string input you gave.?? it depends on that
If you have entered the string such as illeana then string illeana
matches at the first location , so it prints the previous value copied into
the str i.e siva .
Hope you understood .
On Wed, Jul 27, 2011 at 1:24 AM, aditi garg
i made some mistake...and yea wid input siva output is s..:)
On Wed, Jul 27, 2011 at 6:26 PM, Kamakshii Aggarwal
kamakshi...@gmail.comwrote:
but what input did u give??
if u r giving i/p as siva o/p will be s only
On Wed, Jul 27, 2011 at 1:24 AM, aditi garg aditi.garg.6...@gmail.comwrote:
@both...fantastic explanation...thanks :)
On Jul 26, 10:34 pm, rajeev bharshetty rajeevr...@gmail.com wrote:
So if the input is gujarat it scans gujarat to find the first character in
gujarat which is also present in india . So the character in gujarat is a so
it will stop on encountering