If Else

FUNCTIONS

  1. What is a Function?
  2. See Answer Ans: A function is a group of statements that together perform a task. Every C program has at least one function, which is main(), and all the most trivial programs can define additional functions. ... A function declaration tells the compiler about a function's name, return type, and parameters.

  3. Diff b/w Library functions and user defined functions.
  4. See Answer Ans:

  5. Why we defining our own function?
  6. See Answer Ans:

  7. What is call by value?
  8. See Answer Ans: The call by value method of passing arguments to a function copies the actual value of an argument into the formal parameter of the function. In this case, changes made to the parameter inside the function have no effect on the argument.

  9. What is call by Address?
  10. See Answer Ans: The call by pointer method of passing arguments to a function copies the address of an argument into the formal parameter. Inside the function, the address is used to access the actual argument used in the call. This means that changes made to the parameter affect the passed argument.

  11. What is call by Reference?
  12. See Answer Ans: The call by reference method of passing arguments to a function copies the address of an argument into the formal parameter. Inside the function, the address is used to access the actual argument used in the call. It means the changes made to the parameter affect the passed argument.

  13. Diff b/w call by value and call by address.
  14. See Answer Ans:

  15. How to pass an array as argument?
  16. See Answer Ans:

  17. Diff b/w local and global variables.
  18. See Answer Ans:

  19. When to use void as return type?
  20. See Answer Ans:

  21. What is function Prototype?
  22. See Answer Ans:

  23. What is function Overloading?
  24. See Answer Ans:

  25. What is inline function?
  26. See Answer Ans:

  27. What is default argument?
  28. See Answer Ans:

  29. When to use static variables?
  30. See Answer Ans:

  31. What scope and life time of a variable?
  32. See Answer Ans:

  33. What is Recurssion?
  34. See Answer Ans:

  35. Diff b/w actual and formal arguments.
  36. See Answer Ans:

  37. Diff b/w "return" and "return 1".
  38. See Answer Ans:

  39. Is it possible to return multiple values from a function?
  40. See Answer Ans: