Online C Compiler | Online C++ Compiler

bOtskOOl Online C++ Compiler

Online C Compiler | Online C++ Compiler - Login Required


You need to login or register in order to access our Free Online C Compiler | Online C++ Compiler.

Online Compiler - Register for free

 

 

Some recent program(s) compiled by bOtskOOl user(s) :-

Comments

Member since:
22 November 2009
Last activity:
7 years 46 weeks

struct stud { int i[10]; };

 Here structure stud size is 40

 

struct stud { char c[5]; };

And here it is 5

 

but when finding the size the of the following

 

struct stud { int i[10];

char c[5]; };

it must be 45 but its 48, why so????

Member since:
22 November 2009
Last activity:
7 years 46 weeks

shows error as restricted keyword when used<#define> and also when the line is commented.

Member since:
18 February 2009
Last activity:
1 year 37 weeks

Hello lion87,

You can initialize your variables with default values and use those default values directly for the calculations.   

Founder and Admin

Member since:
18 November 2009
Last activity:
7 years 47 weeks

Where should i provide the input if i use scanf function..?

Member since:
18 February 2009
Last activity:
1 year 37 weeks

Our online compiler doesn't support graphics at the moment. 

Founder and Admin

Member since:
14 November 2009
Last activity:
7 years 47 weeks

i dont have tc software. my only option to run c graphics is through online. so what location has to be given to compile it online.

Member since:
18 February 2009
Last activity:
1 year 37 weeks

Hello anand.nanda, 

Wherever you want to use graphics in your program just before that use this piece of code -

int gdriver = DETECT, gmode, errorcode;

initgraph(&gdriver, &gmode, "c:\\tc\\bgi");

And just before ending your program - 

closegraph();

Note:- It has been assumed here that TC folder is located in C: drive. If the location is different change the path accordingly in initgraph() function mentioned above.

Founder and Admin

Member since:
14 November 2009
Last activity:
7 years 47 weeks

i want to know what location has to be given in 'initgraph' to run a graphics file.

Member since:
18 February 2009
Last activity:
1 year 37 weeks

Thank You.

cin won't work at the moment. We are working on developing this functionality. Please try initializing the variables with some default values.  

Founder and Admin

Member since:
10 September 2009
Last activity:
8 years 4 weeks

It's good!! I just had a little problem when using the cin to input data in the program...