online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> #include <string.h> const char * punkt_paa_linje(int linje_1[3], int linje_2[3], int punkt[3]) { int i; double t1; double t2; double t3; for(i = 0; i < 3; i = i + 1 ){ double t = (punkt[i]-linje_1[i])/linje_2[i]; if(i == 0){ t1 = t; } else if (i == 1){ t2 = t; } else if (i == 2){ t3 = t; } } if(t1 == t2 && t2 == t3){ return "true"; } else { return "false"; } } int main() { int et[] = {1,2,3}; int to[] = {4,5,6}; int tre[] = {7,8,9}; printf("%s\n", punkt_paa_linje(et, to, tre)); return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue