What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » C question.

C question.
Author: Message:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: C question.
I just removed float a and float b initialisation from the main function and put it above it, causing it to become a global variable.

code:
#include <stdio.h>
#include <conio.h>

float a;
float b;

void main(void)

{

clrscr();
scanf("%f%f", &a,&b);
printf("%f \n %f", a,b);

}

[Image: 1-0.png]
             
09-21-2006 01:02 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
C question. - by .Roy on 09-21-2006 at 12:39 PM
RE: C question. - by Ezra on 09-21-2006 at 12:48 PM
RE: C question. - by .Roy on 09-21-2006 at 12:58 PM
RE: C question. - by Ezra on 09-21-2006 at 01:02 PM
RE: C question. - by John Anderton on 09-21-2006 at 01:11 PM
RE: C question. - by .Roy on 09-21-2006 at 01:24 PM
RE: C question. - by .Roy on 09-21-2006 at 01:25 PM
RE: C question. - by Eljay on 09-21-2006 at 01:33 PM
RE: C question. - by .Roy on 09-21-2006 at 01:46 PM
RE: C question. - by RaceProUK on 09-21-2006 at 02:23 PM
RE: C question. - by .Roy on 09-21-2006 at 03:53 PM
RE: C question. - by RaceProUK on 09-26-2006 at 11:29 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On