int main(){
    printf("%t",&main);
   //sleep(1000);
  return 0;
}
this works for you




On Thu, Aug 25, 2011 at 12:12 PM, shashi kant <shashiski...@gmail.com>wrote:

> @ankur   it's showing lvalue error.....u should check it in some compiler
> first
>
>
>
> On Thu, Aug 25, 2011 at 2:05 AM, Ankur Garg <ankurga...@gmail.com> wrote:
>
>> I dont think it will be error, U r passing main function as reference so
>> it will print some address ..
>>
>> The only concern is when u execute this 100 or more times will there be
>> some pattern in the answer ?
>>
>> Regards
>> Ankur
>>
>>
>> On Thu, Aug 25, 2011 at 1:41 AM, prasanth n <nprasnt...@gmail.com> wrote:
>>
>>> @ankur:
>>>
>>> i think its error..l value required
>>>
>>> On Wed, Aug 24, 2011 at 11:18 PM, Ankur Garg <ankurga...@gmail.com>wrote:
>>>
>>>> Hi
>>>>
>>>> Suppose there is a program
>>>>
>>>> int main(){
>>>>     printf("%t",&main());
>>>>    sleep(1000);
>>>>   return 0;
>>>> }
>>>>
>>>> The above program is run from 100 different windows
>>>>
>>>> What will be the output
>>>>
>>>> Will there be any pattern
>>>>
>>>> Regards
>>>> Ankur
>>>>
>>>> --
>>>> 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.
>>>>
>>>
>>>
>>>
>>> --
>>> *prasanth*
>>>
>>> --
>>> 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.
>>
>
>
>
> --
> *Shashi Kant *
> ***"Think positive and find fuel in failure"*
> *+919002943948
> *
> *R&D engineer ,
> Tejas Networks Ltd Banglore.
> *
>
>
>


-- 
*Shashi Kant *
***"Think positive and find fuel in failure"*
*+919002943948
*
*R&D engineer ,
Tejas Networks Ltd Banglore.
*

-- 
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.

Reply via email to