What will be the output of the following
#include <stdio.h>
int fun (char *strl) {
char *str2 = stri;
while(*++stri);
return (str1-str2);
3
int main(){
char *str = "NouveauLabs";
printf("%d", fun(str));
return 0;
}
Answers
Answered by
1
Answer:
I don't know?
you can try it using apps like Coding C
Mark me as the brainliest
Answered by
0
Answer:
The output of the program is 11
While:
- The while loop is one of the most common loop types. The main aspect of a while loop is that it will repeat a set of instructions based on a condition.
- As long as the loop returns a TRUE boolean value, the inside it will keep repeating. This form of loop is used when we don't know how many times a piece of has to be run.
Similar questions