What is difference between initialization and assignment?
Answers were Sorted based on User's Feedback
Answer / rahul rasal
Simple Word In my Word..
Initilize:
E.g:
int i;
Assign:
E.g:
int i=30;
Is it Right...?
Is This Answer Correct ? | 3 Yes | 8 No |
Answer / shweta iyer
In initialization, we provide the variable with some initial values which can be changed later. But in assignment, we provide the variable with a fixed value which remains same throughout the whole program.
Is This Answer Correct ? | 8 Yes | 14 No |
Describe Trees using C++ with an example.
Given the following function definition: int doit(int &x, int y, int &z) { x = 3*x; y = y + 5; z = x+y; return z - 4; } int a = 5, b = 7, c = 9, d = 11; d = doit(a,b,c);
Describe private, protected and public?
Can a new be used in place of old mallocq? If yes, why?
What is switch case in c++ syntax?
write a program that takes 5 digit no and calculate 2 power that no and print it.
How to stop conversions among objects?
What are pointers used for c++?
let a,b,c be three integer numbers.write a c++ program with a function void rotate 1()such that a->b->c and c->a.
3- Write a program to find larger and smaller of the two numbers.
How many standards of c++ are there?
structure contains int, char, float how it behaves for big endian and little endian?