I have created sample bigdata project and kept it in Github
https://github.com/gobis/BigDataProject
I'll be updating github link in this post.
https://github.com/gobis/BigDataProject
I'll be updating github link in this post.
 #include <iostream.h>  
 #include <conio.h>  
 class Node  
 {  
  public:  
    int data ;  
    Node * next ;   
    Node(int in){data = in; }   // public param cons  
    };  
 Node* Reverse(Node * head )  
  {  
      Node * temp = NULL ;  
      Node * np = NULL;  
     while (head)  
      {  
       temp = head->next;  
       head->next = np;  
       np = head ;  
       head = temp;     
      }  
      return np ;  
  }  
  void Display(Node * head )  
   {  
    while (head)  
    {  
     printf("%d \t" , head->data);  
     head = head-> next ;    
    }  
   }  
 main()  
 {  
   Node * obj1= new Node(10) ;  
   Node * obj2= new Node(20) ;  
   Node * obj3= new Node(30) ;  
   Node * obj4= new Node(40) ;  
   obj1->next = obj2 ;  
   obj2->next = obj3 ;  
   obj3->next = obj4 ;  
   printf("Before reversing ");    
   Display(obj1);    
   Node * head = Reverse(obj1);  
   printf("\n After reversing ");    
   Display(head);  
   getch();    
 }  Cipher cipher = Cipher.getInstance("AES/ECB/PKCS7Padding", "BC");
 This will give padding bytes as 0F  
Cipher cipher = Cipher.getInstance("AES/ECB/ZeroBytePadding", "BC");
 This will give padding bytes as 00  
based on the padding bytes, you can choose the variant.
| 
Allocation Using | 
Deallocation using | 
Result | 
Remarks | 
| 
new | 
delete | 
Ok | |
| 
new[] | 
delete[] | 
Ok | |
| 
new | 
delete[] | 
The vector delete will try to delete more objects depending on the random value it gets from its object-count location and will obviously result in heap corruption. | 
Compiler will not track the Pointer, Its developer responsibility to call the respective delete operator (ie delete or delete[]) | 
| 
new[] | 
delete | 
Memory leak | 
It will delete only first item in the array |