We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e30a6d + bda23bf commit de13931Copy full SHA for de13931
pointer.cpp
@@ -0,0 +1,27 @@
1
+#include <iostream.h>
2
+
3
+#include <ctime.h>
4
5
+void gS(unsigned long *par); //function declaration
6
7
+int main () {
8
9
+ unsigned long sec;
10
11
+ gS( &sec );
12
13
+ // print the actual value
14
15
+ cout << "Number of seconds :" << sec << endl;
16
17
+ return 0;
18
19
+}
20
21
+void gS(unsigned long *par) { //function definition
22
23
+ // get the current number of seconds
24
25
+ *par = time( NULL );
26
27
0 commit comments