25 Feb 2015

Basic level c practice functions set 2



1.      In the following pgm add a  stmt in the function  fun such that the address of
'a' gets stored in 'j'.
main(){
  int * j;
  void fun(int **);
  fun(&j);
 }
 void fun(int **k) {
  int a =0;
  /* add a stmt here*/
 }
Answer:
                        *k = &a
Explanation:
                        The argument of the function is a pointer to a pointer.
     

5 comments:

  1. Good collection of question, Really help me alot

    ReplyDelete
  2. here is maybe a minuscule minority of American nationals who are unmindful of the term 'Payday Loan' on the other hand - maybe not.

    ReplyDelete
  3. While the larger part of individuals say it is simply one more cash hungry industry hoping to trap purchasers into paying superfluous measures of cash, a few people have come to comprehend the motivation behind the loaning business.

    ReplyDelete
  4. You have to take some time to consider utilizing payday advances. On the off chance that you have taken a gander at each other choice and neglected to discover one that will meet your money related necessities, payday credits might be the appropriate response.

    ReplyDelete
  5. In this manner far,This is the best cure that can answer your current monetary inconveniences. Payday advances won't anticipate that you will fax certain records only for unimportant convention.

    ReplyDelete