Re: [algogeeks] hai...........

2011-07-28 Thread mageshthegreat
I don't think you use smtp to view yahoo or gmail. It is only http requests and 
responses. The smtp is significant only if you use your computer as the server 
to send or receive emails. If you have a local apache server then it uses the 
port to send out mails from your local copy of website running on the server.

Sent from BlackBerry® on Airtel

-Original Message-
From: Rahul 
Sender: algogeeks@googlegroups.com
Date: Thu, 28 Jul 2011 17:26:20 
To: 
Reply-To: algogeeks@googlegroups.com
Subject: Re: [algogeeks] hai...

How it is that we open a number of email in a computer , when there is only
one port for smtp?
---
Rahul



On Thu, Jul 28, 2011 at 5:23 PM, sharmila saru wrote:

> my area of interest is computer network as  u ask question abt
> that .. i will answer immediately..
>
> --
> 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 unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> 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 algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
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 algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output

2011-07-27 Thread mageshthegreat
Sorry between * and the variable name.
Sent from BlackBerry® on Airtel

-Original Message-
From: Kamakshii Aggarwal 
Sender: algogeeks@googlegroups.com
Date: Wed, 27 Jul 2011 19:21:13 
To: 
Reply-To: algogeeks@googlegroups.com
Subject: Re: [algogeeks] output

@magesh:so acc to you the code below should give error?
#include

int main(int argc,char *argv[])
{
  char const *s="";
 char str[]="hello";
 s=str;
 while(*s){
   printf("%c",*s++);
   }

 system("pause");

  return 0;
}


On Wed, Jul 27, 2011 at 7:12 PM,  wrote:

> ** Its not a const pointer. It is pointer to constant. So only modifying
> the value of s will cause error. For constant to pointer the const has to be
> between * and the keyword
>
> Sent from BlackBerry® on Airtel
> --
> *From: * Kamakshii Aggarwal 
> *Sender: * algogeeks@googlegroups.com
> *Date: *Wed, 27 Jul 2011 19:09:20 +0530
> *To: *
> *ReplyTo: * algogeeks@googlegroups.com
> *Subject: *[algogeeks] output
>
> #include
>
> int main(int argc,char *argv[])
> {
>  const char *s="";
>  char str[]="hello";
>  s=str;
>  while(*s){
>printf("%c",*s++);
>}
>
>  system("pause");
>
>   return 0;
> }
> o/p is hello.
> why the above code is running normally even when constant char pointer is
> being incremented...??plss help...
> --
> Regards,
> Kamakshi
> kamakshi...@gmail.com
>
> --
> 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 unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> 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 algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Regards,
Kamakshi
kamakshi...@gmail.com

-- 
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 unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
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 algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output

2011-07-27 Thread mageshthegreat
Its not a const pointer. It is pointer to constant. So only modifying the value 
of s will cause error. For constant to pointer the const has to be between * 
and the keyword
Sent from BlackBerry® on Airtel

-Original Message-
From: Kamakshii Aggarwal 
Sender: algogeeks@googlegroups.com
Date: Wed, 27 Jul 2011 19:09:20 
To: 
Reply-To: algogeeks@googlegroups.com
Subject: [algogeeks] output

#include

int main(int argc,char *argv[])
{
 const char *s="";
 char str[]="hello";
 s=str;
 while(*s){
   printf("%c",*s++);
   }

 system("pause");

  return 0;
}
o/p is hello.
why the above code is running normally even when constant char pointer is
being incremented...??plss help...
-- 
Regards,
Kamakshi
kamakshi...@gmail.com

-- 
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 unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
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 algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] reverse a line.

2011-07-21 Thread mageshthegreat
Push each word into the stack and pop it out at the end of the line.
Sent from BlackBerry® on Airtel

-Original Message-
From: Saurabh 
Sender: algogeeks@googlegroups.com
Date: Thu, 21 Jul 2011 17:15:29 
To: 
Reply-To: algogeeks@googlegroups.com
Subject: [algogeeks] reverse a line.

what is the best way to reverse a line word by word in c or c++???


ex - my name is john
Then after reversing it will be like - john is name my







Regards
Saurabh

-- 
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 unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
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 algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.