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 |
Please provide question papers of NATIONAL INFORMATICS CENTRE for Scientific officer
what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
Whats wrong with the following function char *string() { char *text[20]; strcpy(text,"Hello world"); return text; }
What are pointers? Why are they used?
What is the benefit of using const for declaring constants?
Toggle nth bit in a given integer - num
Write a program to print ASCII code for a given digit.
What is getche() function?
what is the use of ~ in c lang?????
for example user gives input as " 20 or 20.0 or rs 20.0 or 20.00 or rs20 and so .. on " and the output should be stored as " rs.20.00 " in a variable
Write a C program to multiply tho numbers without using arithmetic operator (+, -, *, /).