online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ //说明:传递一个无符号的 long 型指针给函数,并在函数内改变这个值。 #include <stdio.h> #include <time.h> //传递给函数的指针 void getSeconds(unsigned long *par); int main() { unsigned long sec; getSeconds(&sec); printf("秒数是:%ld\n",sec); return 0; } void getSeconds(unsigned long *par) { *par=time(NULL); //获取当前秒数 return; }

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