Nikhitabisht
Hello here is your answer A go to statement provides an unconditional jump from the goto to a labeled statement in the same function.ex- #include <stdio.h> int main() { int sum=0 ; for(int i = 0; i<=10; i++){ sum = sum+i ; if(i==5){ goto addition; } }
addition: printf("%d", sum);
return 0; }
hope it helps!!!!!!!
1 votes Thanks 3
Nikhitabisht
thanx 4 marking my answer as brainliest
Answers & Comments
I didn't understand the meaning of c++
A go to statement provides an unconditional jump from the goto to a labeled statement in the same function.ex-
#include <stdio.h>
int main()
{
int sum=0
; for(int i = 0; i<=10; i++){
sum = sum+i
; if(i==5){
goto addition;
}
}
addition:
printf("%d", sum);
return 0;
}
hope it helps!!!!!!!