Yup that's right
On Mar 28, 2011 8:30 AM, "Praveen Kumar" <[email protected]> wrote:
> Hi!
> I don't know why you asked that question.
> But, tell me if it is a C or C++ program. Anyhow, it will give compilation
> whatever the compiler be.
> Why?? cout is used in namespace 'std', if it is a C++ program iostream.h
> won't work and if it is a C program, cout won't work.
> Pakistan doesn't seem to win the world cup dude so even the compiler
> itself doesn't want to compile and print that statement. There will be no
> output.
>
> Cheers
>
> On Sun, Mar 27, 2011 at 10:38 PM, Umer Farooq <[email protected]> wrote:
>
>> Hi,
>>
>> Can anyone tell me the output of the following code?
>>
>> #include <iostream.h>
>>
>> int main()
>> {
>> ...... if (true)
>> .............. cout << "Pakistan will win the WorldCup 2011\n";
>> ........return 0;
>> }
>>
>> --
>> Umer
>>
>> --
>> 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.
>

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