Hello,im a beginner in c.How do we call a function in the main function?
Abdullah Amjad
0
Newbie Poster
Recommended Answers
Jump to PostYou simple write its name and pass it the arguments. For example:
#include <stdio.h> int main(void) { /* printf *is* a function, and that's how we call all the other functions */ printf("I am %d years old\n", 15); return 0; }
Going a step further and tokenizing …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.