Arrange Doubly linked list in the ascending order of its
integral value and replace integer 5 with 7?
No Answer is Posted For this Question
Be the First to Post Answer
What is object oriented programming (oop)?
Is there any difference between int [] a and int a [] in c++?
What is the keyword auto for?
Do vectors start at 0?
Check for Balanced Parentheses using Stack?
What is called array?
Is c++ a pure oop language?
What are the data types in c++?
What is while loops?
What is c++ coding?
What is the most useful programming language?
1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?