goto c++
C++
// C++ program to check if a number is
// even or not using goto statement
#include <iostream>
using namespace std;
// function to check even or not
void checkEvenOrNot(int num)
{
if (num % 2 == 0)
// jump to even
goto even;
else
// jump to odd
goto odd;
even:
cout << num << " is even";
// return if even
return;
odd:
cout << num << " is odd";
}
// Driver program to test above function
int main()
{
int num = 26;
checkEvenOrNot(num);
return 0;
}
Also in C++:
- Title
- nan c++ example
- Category
- C++
- Title
- what is difference between ciel and floor
- Category
- C++
- Title
- how to compare two strings lexicographically in c++
- Category
- C++
- Title
- c++ while true loop
- Category
- C++
- Title
- nearest integer rounding in c++
- Category
- C++
- Title
- how to delete a node c++
- Category
- C++
- Title
- advanced c++ topics
- Category
- C++
- Title
- map.erase in c++
- Category
- C++
- Title
- inserting an element in an set c++
- Category
- C++
- Title
- primeros numeros primos
- Category
- C++
- Title
- c++ vector size
- Category
- C++
- Title
- sorting of array in c++
- Category
- C++
- Title
- initialize int c++
- Category
- C++
- Title
- msdn parse command line
- Category
- C++
- Title
- iterar un map c++
- Category
- C++
- Title
- How to find the suarray with maximum sum using divide and conquer
- Category
- C++
- Title
- what is meaning of 64 bit integer in c++
- Category
- C++
- Title
- initialize 3d vector c++
- Category
- C++
- Title
- differentialble programming
- Category
- C++
- Title
- c++ initialize array
- Category
- C++
- Title
- Combination Sum
- Category
- C++
- Title
- how to print a string to console in c++
- Category
- C++
- Title
- c++ program to input and print text using Dynamic Memory Allocation.loop
- Category
- C++
- Title
- function template
- Category
- C++
- Title
- object slicing in c++
- Category
- C++
- Title
- type id c++
- Category
- C++
- Title
- friend function in c++
- Category
- C++
- Title
- how to have a queue as a parameter in c++
- Category
- C++
- Title
- double max value c++
- Category
- C++
- Title
- what does map.count() return in c++
- Category
- C++
- Title
- floor() in c++
- Category
- C++
- Title
- linear search in c++
- Category
- C++
- Title
- pionter in c++
- Category
- C++
- Title
- how to print 5 precision float in c++
- Category
- C++
- Title
- new class * [] c++
- Category
- C++
- Title
- substr c++
- Category
- C++
- Title
- find in vector in c++
- Category
- C++
- Title
- cloud hosting
- Category
- C++
- Title
- never gonna give you up
- Category
- C++
- Title
- system("pause") note working c++
- Category
- C++
- Title
- c++ random
- Category
- C++
- Title
- constant variables in c++
- Category
- C++
- Title
- user input c++
- Category
- C++
- Title
- C++ cin cout
- Category
- C++
- Title
- pause the console c++
- Category
- C++
- Title
- how to get last element of set in c++
- Category
- C++
- Title
- assegnare valori in c++
- Category
- C++
- Title
- c++ while true
- Category
- C++
- Title
- c++ while loop code
- Category
- C++
- Title
- max three values c++
- Category
- C++
- Title
- map insert c++
- Category
- C++
- Title
- newline in c++
- Category
- C++
- Title
- new c++
- Category
- C++
- Title
- c++ pi
- Category
- C++
- Title
- c++ variable argument
- Category
- C++
- Title
- C++ w3schools
- Category
- C++
- Title
- least number of coins to form a sum
- Category
- C++
- Title
- simple timer arduino blynk library error
- Category
- C++
- Title
- how to create object in c++
- Category
- C++
- Title
- c++ class member initialization
- Category
- C++
- Title
- is TLE means my code is correct but taking more time to computr
- Category
- C++
- Title
- maximum subarray sum in c++
- Category
- C++
- Title
- c++ overload operator
- Category
- C++
- Title
- how to read and write in a file c++
- Category
- C++
- Title
- check if key exists in map c++
- Category
- C++
- Title
- set of vectors c++
- Category
- C++
- Title
- how to compare lower case character to uppercase cpp
- Category
- C++
- Title
- regexp_like oracle c++
- Category
- C++
- Title
- retu7rn this c++
- Category
- C++
- Title
- cout value c++
- Category
- C++
- Title
- remove item from layout
- Category
- C++
- Title
- how to find the mode of a vector c++
- Category
- C++
- Title
- preorder traversal
- Category
- C++
- Title
- run cmd command c++
- Category
- C++
- Title
- matrix multiplication c++ eigen
- Category
- C++
- Title
- struct c++
- Category
- C++
- Title
- matrix eigen c++ example
- Category
- C++
- Title
- hashing in competitive programming
- Category
- C++
- Title
- c++ evaluate expression
- Category
- C++
- Title
- pop from between string c++
- Category
- C++
- Title
- arduino falling edge
- Category
- C++
- Title
- ue4 c++ array
- Category
- C++
- Title
- what is order in of preeendence in float, int, char, bool
- Category
- C++
- Title
- how the theam are store in database
- Category
- C++
- Title
- sleep system function linux c++
- Category
- C++
- Title
- what is atoi in strinf
- Category
- C++
- Title
- initialization list c++
- Category
- C++
- Title
- c++ map insert
- Category
- C++
- Title
- how to iterate trough a vector in c++
- Category
- C++
- Title
- Newton's sqrt in c++
- Category
- C++
- Title
- c++ function to find length of array
- Category
- C++
- Title
- how to append to a vector c++
- Category
- C++
- Title
- decimal to hex cpp
- Category
- C++
- Title
- statement that causes a function to end in c++
- Category
- C++
- Title
- delete files c++
- Category
- C++
- Title
- find all the palindrome substring in a given string
- Category
- C++
- Title
- how to sort a vector in c++
- Category
- C++
- Title
- hohw toparse a string in c++
- Category
- C++
- Title
- cpp how to create an object of template class
- Category
- C++
- Title
- leveling system c++
- Category
- C++