jump to navigation

Online C compiler November 22, 2008

Posted by razasayed in Hacks, programming.
Tags:
trackback

Sometime back i was at my friends place . He was preparing for some test and he showed me a complex looking C expression , and asked me what it would evaluate to . I told him what i thought would be the answer but anyways we needed to verify it .  He did not have a C compiler installed on his machine . But, luckily enough he did have an internet connection , and google came to the rescue .

There is an online C compiler available at http://www.delorie.com/djgpp/compile/ . It runs your program and gives the executable for download . Pretty cool and quite handy when we quickly need to check the output of some C program , but dont have access to a C compiler . Saves some time on downloading and installing one.

However, of course this wont work if you are using a GNU/Linux system, as the output is an exe . However, for those users gcc is just a synaptic away 😉

Advertisements

Comments»

1. 93973 - March 9, 2009

And from where is the confidence that it’s not a malicious program?

2. Anonymous - March 25, 2009

/* Author: Your name
Date: yyyy/mm/dd
Description:
Writes the words “Hello World” on the screen */

#include

int main()
{
printf(“Hello World\n”); //prints “Hello World”
return 0;
}

3. Anonymous - March 25, 2009

SO

4. Anonymous - March 31, 2009

Hello

5. Anonymous - April 16, 2009

#include

int main()
{
printf(“Hello World!”);
return 0;
}

6. ankit babbar - May 9, 2009

a C/C++ online compiler
It’s for free, no need to search for any compiler. Just come write your program and test it for fee

7. ankit babbar - May 9, 2009

botskool.com/online-compiler
a C/C++ online compiler
It’s for free, no need to search for any compiler. Just come write your program and test it for fee

8. Vineet Dwivedi - June 13, 2009

Embedding a virus in the output is a easy and sure way of infecting your computer.

9. Anonymous - July 30, 2009

#include

int main()
{
printf(”Hello World\n”); //prints “Hello World”
return 0;
}

10. Anonymous - August 31, 2009

ok thats cool. but its not very helpful. with a limit of 1000 characters, a simple program to open an empty window is over twice the limit in characters

11. Anonymous - September 30, 2009

/* Author: Your name
Date: yyyy/mm/dd
Description:
Writes the words “Hello World” on the screen */

#include

int main()
{
printf(”Hello World\n”); //prints “Hello World”
return 0;
}

12. asd - November 4, 2009

it doesn’t work anymore

13. Ed - November 4, 2009

pls do u know any site where i can get a free online c++ compiler

14. Ed - November 4, 2009

my email ad is jedwin45@yahoo.com mail me if u know wher i can get a free online c++ compiler since i dont have a pc at the moment

15. shashwat - November 16, 2009

Check out this url – http://www.botskool.com/online-compiler
Free C/C++ Compiler. You don’t need to download any exe after program has been compiled output is shown on webpage itself!
Hope this helps 🙂

16. lucky - July 22, 2010
17. setare - December 10, 2010

Thanks you,it really helps 🙂

18. Anonymous - January 3, 2011

#include
not included and other lib…

19. sayed ahetesham - April 26, 2011

#include
#include
main(){
int x, *p;

p = &x; /* initialise pointer */
*p = 0; /* set x to zero */
printf(“x is %d\n”, x);
printf(“*p is %d\n”, *p);

*p += 1; /* increment what p points to */
printf(“x is %d\n”, x);

(*p)++; /* increment what p points to */
printf(“x is %d\n”, x);

exit(EXIT_SUCCESS);
}

20. vishal patil - July 4, 2011

hey guys i wanna learn a C programming online so please any one is thyere who can teach mi online please help mi…………………….. i am a fresher

21. Anonymous - October 20, 2011

main()
{
int i=2;
printf(“%d%d”,++i,++i);
}

PLEASE LET ME NO ITS OUTPUT

22. convert c to k - November 17, 2011

SAP B1 goes further with such things as extending existing tables in settings with new user defined fields as well as adding new user defined tables where in both cases user interface is added automatically to show and edit newly created custom tables and fields. vb.net

23. yohaan - May 13, 2012

#include
#include
#include
#include
#include
int x[2],y[2],z;
void display(int x[2],int y[2])
{
int x3,y3,x4,y4;
line(getmaxx()/2,0,getmaxx()/2,getmaxy());
line(0,getmaxy()/2,getmaxx(),getmaxy()/2);
rectangle(getmaxx()/2+x[0],getmaxy()/2-y[0],getmaxx()/2+x[1],getmaxy()/2-y[1]);
if(z>=x[0])
{
x3=z+x[0];
y3=z+y[0];
x4=z+x[1];
y4=z+y[1];
rectangle(getmaxx()/2+x3,getmaxy()/2-y3,getmaxx()/2+x4,getmaxy()/2-y4);
line(getmaxx()/2+x[0],getmaxy()/2-y[0],getmaxx()/2+x3,getmaxy()/2-y3);
line(getmaxx()/2+x[1],getmaxy()/2-y[1],getmaxx()/2+x4,getmaxy()/2-y4);
line(getmaxx()/2+x[0],getmaxy()/2-y[1],getmaxx()/2+x3,getmaxy()/2-y4);
line(getmaxx()/2+x[1],getmaxy()/2-y[0],getmaxx()/2+x4,getmaxy()/2-y3);
}
else
{
x3=x[0]-z;
y3=y[0]-z;
x4=x[1]-z;
y4=y[1]-z;
rectangle(getmaxx()/2+x3,getmaxy()/2-y3,getmaxx()/2+x4,getmaxy()/2-y4);
line(getmaxx()/2+x[0],getmaxy()/2-y[0],getmaxx()/2+x3,getmaxy()/2-y3);
line(getmaxx()/2+x[1],getmaxy()/2-y[1],getmaxx()/2+x4,getmaxy()/2-y4);
line(getmaxx()/2+x[0],getmaxy()/2-y[1],getmaxx()/2+x3,getmaxy()/2-y4);
line(getmaxx()/2+x[1],getmaxy()/2-y[0],getmaxx()/2+x4,getmaxy()/2-y3);
}
}
void matmul(int a[4][4])
{
float res[4][1],b[4][1];
int i,j,k,l;
for(i=0;i<2;i++)
{
b[0][0]=x[i];
b[1][0]=y[i];
b[2][0]=z;
b[3][0]=1;
for(j=0;j<4;j++)
{
for(k=0;k<1;k++)
{
res[j][k]=0;
for(l=0;l<4;l++)
{
res[j][k]=res[j][k]+(a[j][l]*b[l][k]);
}
}
}
x[i]=res[0][0];
y[i]=res[1][0];
}
z=res[2][0];
display(x,y);
}
void translate()
{
int p[4][4],tx,ty,tz,i,j;
for(i=0;i<4;i++)
for(j=0;j<4;j++)
p[i][j]=(i==j);
printf("\nEnter Translating factor tx:");
scanf("%d",&tx);
printf("\nEnter Translating factor ty:");
scanf("%d",&ty);
printf("\nEnter Translating factor tz:");
scanf("%d",&tz);
clrscr();
cleardevice();
p[0][3]=tx;
p[1][3]=ty;
p[2][3]=tz;
matmul(p);
}
void main()
{
int i,ch;
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
for(i=0;i<2;i++)
{
printf("\nEnter X-co-ordinate of vertex %d:",i+1);
scanf("%d",&x[i]);
printf("\nEnter Y-co-ordinate of vertex %d:",i+1);
scanf("%d",&y[i]);
}
printf("\nEnter Z-axis for 3d figure:");
scanf("%d",&z);
clrscr();
cleardevice();
display(x,y);
getch();
do
{
printf("\t\a MENU \t\a");
printf("\n1.Translation");
printf("\t2.Exit");
printf("\t\vEnter ur Choice:");
scanf("%d",&ch);
clrscr();
cleardevice();
display(x,y);
switch(ch)
{
case 1:
translate();
break;
case 2:
exit(0);
}
}
while(ch!=2);
getch();
closegraph();
}

24. Anonymous - May 2, 2013

Temporarily offline 😦

25. Pr0ffEa - December 3, 2014

Здравствуйт Может кто знает ,по каким критериям выбрать копию часов , очень важно качество при этом дешевые , и бренд что бы были популярный. Какие нибудь крутые ценой до 200 бакинск.
Перекиньте где почитать

карты новосибирска Дорогие часы в Новосибирске в на электронные часы наручные спб


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: