What is difference between initialization and assignment?

Answers were Sorted based on User's Feedback



What is difference between initialization and assignment?..

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

What is difference between initialization and assignment?..

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

Post New Answer

More C++ General Interview Questions

WHO DEVELOPED C++?

6 Answers  


A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.

0 Answers  


What are the implicit member functions of class?

0 Answers  


Are c and c++ different?

0 Answers  


write a C++ programming using for loop: * * * * * * * * * *

4 Answers   TCS,






Is c++ the hardest programming language?

0 Answers  


Who discovered c++?

0 Answers  


What is c++ 11 and c++ 14?

0 Answers  


What is a mutable member?

1 Answers  


What is buffer and example?

0 Answers  


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.

1 Answers  


Explain the difference between struct and class in terms of access modifier.

0 Answers  


Categories