Learn with Vikas Suhag
VR Indian Wanderers Learn with Vikas Suhag Govt Jobs Free Chart Maker Stock Trekker Youtube Instagram RSS Feed
Passing pointers to functions in C Language
Mar 06, 2022   Vikas Suhag

#include <stdio.h>
#include <time.h>
void getSeconds(unsigned long *par);
int main ()
{
unsigned long sec;
getSeconds( &sec );   /* print the actual value */
printf("Number of seconds: %ld\n", sec );
return 0;
}
void getSeconds(unsigned long *par)   /* get the current number of seconds */
{
 *par = time( NULL );
 return;
}

 


Leave a Comment

* Email will not be published.
All comments are only visible after approval.
Most Viewed articles
Travel Blog - VR Indian Wanderers
VR Indian Wanderers
Govt. Jobs Portal
Govt. Jobs Portal
Free Chart Maker
Make free animated Charts from .CSV
Search
Youtube Channel
Subscribe to Email Updates
Connect With Us
VR Indian Wanderers Learn with Vikas Suhag Govt Jobs Free Chart Maker Stock Trekker Youtube Instagram RSS Feed
© 2025 Learn with Vikas Suhag. All Rights Reserved.