Advertisement
ayawaska

targil6

Apr 1st, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.53 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. typedef struct listNode{
  5.     int data;
  6.     listNode *nextPtr;
  7. }listNode;/*end of struct listNode*/
  8.  
  9.  
  10.  
  11. void insert(listNode *sPtr,int data);
  12. int is_odd(int );
  13. void printList(listNode currentPtr);
  14.  
  15. void main(){
  16.     listNode *strtPtr = NULL;
  17.     int num=0;
  18.     printf("Enter Numbers -1 to stop\n");
  19.     while(num!=-1){
  20.         scanf("%d",&num);
  21.         if(is_odd(num))
  22.  
  23.     }
  24.    
  25.  
  26. }
  27. int is_odd(int num){
  28.     num%2 ? 1 : 0;
  29. }
  30. void insert(listNode *sPtr, int data){
  31.    
  32. }
  33.  
  34. void printList(listNode currentPtr){
  35.    
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement