View Single Post
Old 09-08-2008, 08:36 AM   #1 (permalink)
simple
simple's Avatar
 
True Techie

Join Date: Jan 2006

Location: Earth

Posts: 171

simple

Default strange thing in VC++

Hey guys this is a simple code snippet....

#include "h1.h"

int main()
{
cout<<"\nHello \n";
printf("\nWelcome!!!");
return 0;
}

but the output i get is "Welcome" first and then "hello".

Why is welcome statement executing first?

i have included stdio.h and iostream.h in h1.h
i am running Visual studio 6.0
any suggestions?
__________________
<A HREF=http://ubanimator.com><IMG SRC=http://img182.imageshack.us/img182/5168/userbar511415cb2.gif><A>
simple is offline