What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-03-15 04:15:12
c++ void to avoid functions
/*The following example collects user data and formats it using seperate void statements */ #include <iostream> #include <string> #include <stdio.h> #include <stdlib.h> using namespace std; // function declarations void inputData... Add solution -
Javascript 2021-11-21 20:17:22
javascript function declaration
//Function declarations load //before any code is executed //while //Function expressions load //only when the interpreter reaches that line of code. //eg. add(1,2); function add(a,b){ //this is a function declaration return a+b; } sum(1,5); //this... Add solution -
Javascript 2021-11-11 12:14:17
can the name of function be the same with name of variable js
If you use a function name as variable name, its value is replaced by function body. So var a becomes your function a and thus your alert displays function a. Edit But if you assign value to a like var a = "xya";. Then it function will be re... Add solution -
Javascript 2021-11-05 00:52:10
function declaration and function definition in javascript
//Function declarations load //before any code is executed //while //Function expressions load //only when the interpreter reaches that line of code. //eg. add(1,2); function add(a,b){ //this is a function declaration return a+b; } sum(1,5); //this... Add solution -
C++ 2021-11-02 15:40:06
function call in c++
#include <iostream> using namespace std; //REMOVE COMMENTS TO USE VARIOUS FUNCTION CALLING METHODS // function declaration void swaper(int &,int&) ;// call by reference //void swaper(int *,int * );// call by address //void swaper(int,int );... Add solution -
C++ 2021-10-22 19:36:12
pass by address array in c++
#include <iostream> using namespace std; // function declaration: double getAverage(int arr[], int size); int main () { // an int array with 5 elements. int balance[5] = {1000, 2, 3, 17, 50}; double avg; // pass pointer to the array ... Add solution -
C 2021-10-12 19:41:05
void c programming
FUNCTION DECLARATION when void is used as a function return type, it indicates that the function does not return a value. POINTER DECLERATION When void appears in a pointer declaration, it specifies that the pointer is universal. FUNCTION PARAMETER(... Add solution -
Other 2021-10-09 21:46:05
palindrome using recursion in c
/** * C program to check palindrome number using recursion */ #include <stdio.h> #include <math.h> /* Function declarations */ int reverse(int num); int isPalindrome(int num); int main() { int num; /* Input any number fr... Add solution -
Javascript 2021-09-21 02:28:04
function declaration javascript
//Function declarations load //before any code is executed //while //Function expressions load //only when the interpreter reaches that line of code. //eg. add(1,2); function add(a,b){ //this is a function declaration return a+b; } sum(1,5); //this... Add solution -
Dart 2021-09-08 13:15:01
return type of a function
The result of a function is called its return value and the data type of the return value is called the return type. If a function declaration does not specify a return type, the compiler assumes an implicit return type of int . ... A function can have a ... Add solution
Best helpers
Ranking is empty