Advertisement
sujonshekh

Data structure

Jan 23rd, 2017
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.63 KB | None | 0 0
  1. ** No Argument No Return**
  2. #include<stdio.h>
  3. void printline();
  4. int main()
  5. {
  6.     printline();
  7.     return 0;
  8. }
  9. void printline()
  10. {
  11.     printf("Sujon shekh");
  12. }
  13.  
  14. **Argument No Return**
  15. #include<stdio.h>
  16. void Add_wR(int c,int d);
  17. int main()
  18. {
  19.     int a=10, b=20;
  20.     fuad(a,b);
  21.     return 0;
  22. }
  23.  
  24. void fuad(int c,int d)
  25. {
  26.     int sum;
  27.     sum=c+d;
  28.     printf("%d",sum);
  29. }
  30. **Argument and Return**
  31. #include<stdio.h>
  32. void Add_R(int c,int d);
  33. int main()
  34. {
  35.     int a=10, b=20, k;
  36.     k=sujon(a,b);
  37.     printf("%d",k);
  38.     return 0;
  39. }
  40.  
  41. int sujon(int c,int d)
  42. {
  43.     int sum;
  44.     sum=c+d;
  45.     return sum;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement