Explain the difference between call by value and call by reference in c language?
No Answer is Posted For this Question
Be the First to Post Answer
Given an array of numbers, except for one number all the others occur twice. Give an algorithm to find that number which occurs only once in the array.
void main() { int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} }; int (*p)[2]; int i,j,*pint; for(i=0;i<=3;i++) { p=&s[i]; pint=p; printf("\n"); for(j=0;j<=1;j++) printf("%d",*(pint+j)); } } while running this program it shows a warning-suspicious pointer conversion ie pint=p; my que is why should we assign the value of p to pint again.why cant we use it directly as *(p+j)..but if i use like tat the o/p is garbage value..
C passes By value or By reference?
5 Answers Geometric Software, Infosys,
What is the difference between getch() and getche()?
What do you mean by Recursion Function?
What is meant by initialization and how we initialize a variable?
What is the difference between a string and an array?
Why do we need arrays in c?
c program for searching a student details among 10 student details
Add 2 64 bit numbers on a 32 bit machine
3 Answers EMC, Hyderabad Central University, NetApp,
In which header file is the null macro defined?
how to swap 2 numbers in a single statement?