libdo

Untitled

Oct 16th, 2017
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.51 KB | None | 0 0
  1. void func(int a1, int a2, int a3)
  2. {
  3.         int i,j,k;
  4.         int * nodes[5]={a,b,c,d,e}; //my current attempt
  5.         if(a1){
  6.                 i++;
  7.                 a++; //I am trying to implement these variables as counters to profile the nodes
  8.                 if(a2){
  9.                         j++;
  10.                         b++;
  11.                 }
  12.         } else {
  13.                 k++;
  14.                 c++;
  15.         }
  16.  
  17.         if(a3){
  18.                 k++;
  19.                 d++;
  20.         }
  21.         e++;
  22.  
  23. }
Add Comment
Please, Sign In to add comment