how it is logical to get this to work?
#include <iostream>
using namespace std;
int main()
{
int a;
if(a = 0)
{
cout<< "oldu" << endl;
}
else
{
cout << "olmadi" << endl;
}
return 0;
}
whereas in c# you can not do something like below :
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int a;
if (a = 1)
{
Console.WriteLine("oldu");
}
else
{
Console.WriteLine("olmadi");
}
}
}
}