What is call by reference in functions?
The call by reference method of passing arguments to a function copies the address of an argument into the formal parameter. ... It means the changes made to the parameter affect the passed argument. To pass a value by reference, argument pointers are passed to the functions just like any other value.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we replace the struct function in tree syntax with a union?
What is the output for the program given below typedef enum grade{GOOD,BAD,WORST,}BAD; main() { BAD g1; g1=1; printf("%d",g1); }
What is break statement?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
void main() { //char ch; unsigned char ch; clrscr(); for(ch =0;ch<= 127; ch++) printf(" %c= %d \t ", ch, ch); } output?
Explain zero based addressing.
What is sizeof in c?
What are the 4 types of unions?
What is structure packing ?
What do you mean by scope of a variable in c?
Write a program to print “hello world” without using semicolon?
What is a buffer in c?