### What will be the output of the following C code? ```c #include <stdio.h> void main() { m(); } void m() { printf("hi"); m(); } ``` Options: - a. Compile time error - b. hi - c. Infinite hi - d. Nothing
Question
### What will be the output of the following C code?
```c
#include <stdio.h>
void main() {
m();
}
void m() {
printf("hi");
m();
}
```
Options:
- a. Compile time error
- b. hi
- c. Infinite hi
- d. Nothing
🧐 Not the exact question you are looking for?Go ask a question
Solution 1
The output of the given C code will be an infinite number of "hi". This is because the function "m()" is a recursive function that calls itself without any termination condition. Therefore, it will keep printing "hi" until the program is manually stopped or until it runs out of stack memory and cras Knowee AI is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI
Similar Questions
0/0
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.