Return-value Questions
Ad
Weird results with type conversion of literals and return values in C
Two questions regarding this simple code: float foo(){ return 128.0; } int main(){ char x = (char) 128; char y = (char)
javascript function return without semicolon
If i want to write (to save 4 spaces indentation, or what ever reason): return somelonglineexpressionreturnvalue;
Error when trying to return a string with calls from array
This code is returning an error and the 2nd 'else if' statement:
Why ? Object params of function returns undefined JS
in this query, i've have small doubt i need to know why? we are in #lockdown mean while one
How to put return value into another return value in JS vue
I want the "topic1" to be the value of my breed name and key, but when i try to put this.topic1 to replace the manual typing, it shows nothing.
InitState in flutter, deriving document value from firestore
I am working on an app where i need to filter out every user that signs in. once they signed in, they will be redirected to wrapper that checks if
How can I show a specified value at inputText?(XPages)
I have a form like the following figure. if the first item days has a value, it will show out "division processing". how can i
I am trying to get the value of the property in my dropdown menu in react
I am trying to console.log the value of the dropdown item that i selected. i have tried e.target.value and
How to edit style of output text of return statement in Flutter?
How can i change the font size of the return value? or what other method can i do?
Why my code is not returning the value of hypotenuse?
Basically, i need to calculate a hypotenuse of the right triangle first, my code defines if the triangle is right or not, and then based on
Ad
How do I pass out values of a function, who in turn took values themselves?
I am what most people would probably consider a beginner programmer. i am moving along rather nicely on attempting to make my own text based
Conditionally return data
I have this function: getface(/* string */ face_name, /* int */ w, /* int */ h, /* int */ z) { const am =
Return MongoDB query result as variable instead of to console
In a javascript file named db_to_var.js i have the following function that succesfully prints the array returned by a query to
Python not give the proper return value
I'm writing a program that ask for users input and check if it is an integer. if yes than it converts it into an integer and return with the
How to send data from google appscript to an html page
I have a google app script that has multiple features. i want to display some of the data on sidebar html page. here is what i
Why do we return None in this decorator?
I am reading this code snippet in python: def decorator_function(original_function): def wrapper_function(*arg,**kwargs):
If Java passes by reference. Why can't i modify returned objects like this
Why is the compiler freaking out? i should be able to modify the returned object if java returned an object reference right? class
How to receive optional tuple return values
I have a function that looks like this: fn some_func() -> option<(string, i32)> when i tried to do
Flutter Returning Data from Widget
Before anything i first apology for my english. so in order to write pretty code, i've parsed my code in multiple file. to just call widget
Passing a HTTP body from one function to another nodeJS
I am using nodejs request package and i want to return a json from one function to another. currently my solution is: var request
JS lambda default return value
I am a bit confused with the default return value of lambdas in node.js. i found this link
Ad
Why width style value not show in input?
I'm trying to take the width from the "demo" div and put it in the "input number" value. i can not figure out where i made a mistake...
Don't understand working of anymodel.findOne.then().catch()
I tried this code to login in my api user.post("/login", (req, res) => { let email = req.body.email; let password =
Get undefined when returning a value from an array - Node JS
I'm new to nodejs and i get some difficulties with its asynchronous nature. i'm requesting some data using a async function. my second
returning an object from an inner method
I am trying to build a separate class for firebase methods, one of these methods is to return an object user public user
Does assigning multiple return values by index impact performance in Python?
Lately i wrote some python 3 code along the lines of def foo(): return x, y def bar(): data = {"some": "values"}
Coffee Machine - invalid syntax and End of Statement expected in new function
So i'm trying to create a coffee machine program (you choose a drink, the machine checks the ingredients, the resources and the money you insert,
Execute a C program from within another C program as if it was a function call (in Windows)?
Is it possible call a separate c program (.exe file) within a c program, like if it was a function? i would like to be able to pass
Splitting a string that contains some digits into multiple arrays of digits
I'm asking users to enter a string of that contains both digits, underscore and comma in main function. i'm creating a
Can I read in a character without the return key 'n'? (C)
Im trying to verify if the user enters the right value with the return values. he should enter an even number between 0 and 100. i think i
Data of struct created at return statement of a function is available in caller function
I wrote the following program in c. #include <stdio.h> #include <stdlib.h> typedef struct { int num1; int
which is better way to returning structure from function?
There are various ways to return structure from function like return whole structure or return the pointer only. returning pointer is useful to
Ad
What is the difference between using/not using return in a subprogram?
The second piece of code is not giving the correct value as it only passes the value of r from what i see. however, i would like to
Return value with logic operators
Can anyone explain to me how this return works when there are logic operators? also explain when this function is going to return itself and the
Failed to receive a node pointer's value when returning it from a function
So this is my search function in the binary search tree. when returning the result node to my insert function, a variable in insert
assign numeric value of digit into char using scanf
If i have a char: char ch and i want to assign it a numeric value of a digit, for example, if the user enters 0, i want the
how to prevent multiple decimals in javascript calculator
I am making a javascript calculator and have problem with decimals.i need them to output only once.i will show an example with dots (i need 0.55
Function prints correct result, returns wrong value
I know there are millions of similar questions, but i couldn't solve my case. i have a data set consisting of 4 columns (energy versus imaginary
Return an array which is iniated in a one liner
I want to return an array of my custom structure object timeinday with as few lines as possible, in order to return a day in my time
Returning a value from a function failed with NoneType
I have a problem with returning a value from an external function. function: def
JS recursion returns undefined
I would like to get back the result as a return value from the recursion, but i get 'undefined'. i read through all the related solutions (see
optional multiple return values
I have a function that most of the time should return a single value, but sometimes i need a second value returned from the function.
What should main() return in C and C++?
What is the correct (most efficient) way to define the main() function in c and c++ — int main() or void
Ad
How the compiler optimization solves this programming issue?
Let us consider the following program. #include <stdio.h> #define exit_success 0 #define
Why does int main() {} compile?
(i'm using visual c++ 2008) i've always heard that main() is required to return an integer, but here i didn't put in return
Angular4 issue with http requests
In my angular 4 application i am developing an oath guard service. there i want to check if the token is live and if not, user needs to log in
the ValueError: cannot reindex a non-unique index with a method or limit appears for just cryptocurrency
Would you please tell me what is wrong with the following as i get the error: valueerror: cannot reindex a non-unique index with a method
Ad
Blog Categories
Ad