[glugot] help please

  • From: nithya kv <nithyakv2001@xxxxxxxxxxx>
  • To: glugot@xxxxxxxxxxxxx
  • Date: Thu, 29 Jul 2004 12:00:59 +0100 (BST)

hai

i m new to linux OS and slow to pick up,so please bare
my simple doubts.

Something funny is happening in my system.


pgm 1:n.c
#include<stdio.h>
main()
{
printf("hello');
}

compiled gcc -o n n.c
executed it ./n
no output.

pgm 2:h.c
3include<stdio.h>
main()
{
int i,j,k;
printf("Enter 2 nos");
scanf("%d %d",&i,&j);
k=i+j;
printf("%d",k);
}

compiled & executed in the similar way before
gcc -o h h.c
./h

(i got)
Enter 2 nos2
3
(!!!!!!!!!then no output)


pgm 3: test.c
#include<stdio.h>
main()
{
float f;
printf("enter no");
scanf("%f",&f);
printf("the floating no is%f",f);
}

compiled :gcc-o test test.c
./test
enter no 3
$the floating no is3.0000

i don't understand what is happening?help please

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

--
GLUGOT = GNU/Linux User Group Of TCE
visit: http://www.glugot.tk /
(TCE students, check TCENet for GLUGOT website)



Other related posts: