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.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

How do shell structures work?

0 Answers  


#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300

4 Answers   Tieto,


Tell us bitwise shift operators?

0 Answers  


Explain what is page thrashing?

0 Answers  


What's the difference between calloc() and malloc()?

4 Answers  






Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

0 Answers  


What is the difference b/w main() in C language and main() in C++.

7 Answers  


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

0 Answers  


Can a function argument have default value?

0 Answers   Genpact,


What is a struct c#?

0 Answers  


what is the first address that gets stored in stack according to a C or C++ compiler???? or what will be the first address that gets stored when we write a C source code????????

2 Answers   Apple,


What is meant by initialization and how we initialize a variable?

0 Answers  


Categories