Questions tagged as 'passagem-por-valor'

1
answer

Pass vector by reference or value?

I want to create two functions, one is to fill a vector with random numbers. The other function is to display the contents of the filled vector. So I did this: #include <stdio.h> #include <stdlib.h> int vetor[5]; void inicia(int v...
asked by 28.12.2016 / 15:35
1
answer

Syntax errors in C [closed]

I'm doing this exercise in C, but I caught that part of passing pointer parameters. Basically the program below adds the portion of real numbers and integers. The problem is that the current results are: a = 12 (correct!) b = 10 (...
asked by 31.05.2018 / 18:55
2
answers

How to pass arguments by value in Python?

def somentenumeros(entrada): try: int(entrada) return True except: return False while True: cpf = input('Digite seu CPF ou digite os nove primeiros digitos ') if somentenumeros(cpf) == False or len(cpf)!=...
asked by 04.03.2017 / 12:52
0
answers

How do I pass the values stored in a struck to another function can I modify it?

I've been trying to run this program since yesterday, but I can not manipulate the data of my struct when I move it to another function, the other function simply to create other values, the goal of the program is to change the name cpf and enro...
asked by 22.06.2018 / 21:52
1
answer

Variable value passing from one method to another method in Java

The project is about a school GED, where there is the main class that connects to the database and there is another class to generate PDF files. The point is that the system even extracts the desired data from the database, but can not insert...
asked by 09.04.2018 / 18:32