This is a discussion on What is the difference between = and == in C? within the C and C++ Programming forums, part of the Software Development category; What is the difference between = and == in C?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, '=' means assignment operator '==' means relational operator Example: ------- void main() { int a=5,b=5; clrscr(); a=b; // here assign the b value to a Printf("%d",a); if(a==b) // here check a is equal as b printf("A is equal b") getch(); } |
| |||
| hi Vadivelan, i don't know why you asked this question, basic computer knowledged person also know this difference, because i think most of the computer languages '=' means assignment operator and '==' means relational operator. so please don't waste your time and others too.
__________________ Thanks & Regards Sabari... |
![]() |
| Thread Tools | |
| Display Modes | |
| |