What is function in c with example?
Answer / Sanjay Kumar Maurya
A function in C is a collection of statements that performs a specific task. Here's an example of a user-defined function:
```c
#include <stdio.h>
void printHello() {
printf("Hello, World!n");
}
int main() {
printHello();
return 0;
}
```
In this example, `printHello()` is a function that prints "Hello, World!" when called from the `main()` function.
| Is This Answer Correct ? | 0 Yes | 0 No |
Write a program to implement queue.
why u join this call center?
what is mallloc()?how it works?
What is conio h in c?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
What is %lu in c?
write a function to find whether a string is palindrome or not and how many palindrome this string contain?
What does %p mean c?
code for selection sort?
Can anyone help me with this please? Need to print the below values.. Thanks 1 1 2 1 2 3 1 2 3 4
What is the purpose of main() function?
How do you use a 'Local Block'?