Object obj = null
// is this condition true ? yes : no
var output = (obj == null) ? "Yes" : "No";
// output = "yes"
# plz suscribe to my youtube channel -->
# https://www.youtube.com/channel/UC-sfqidn2fKZslHWnm5qe-A
int x=10, y=5;
Console.WriteLine("----- Logic Operators -----");
Console.WriteLine(x > 10 && y < 10);
using System;
namespace Operator
{
class AssignmentOperator
{
public static void Main(string[] args)
{
int firstNumber, secondNumber;
// Assigning a constant to variable
firstNumber = 10;
Console.WriteLine("First Number = {0}", firstNumber);
// Assigning a variable to another variable
secondNumber = firstNumber;
Console.WriteLine("Second Number = {0}", secondNumber);
}
}
}
#include <stdio.h>
#define CONCATENATES 1234##5678
int main(){
printf("%d
",CONCATENATES);
return 0;
}
public int this[int index]
{
get => GetValue(index);
set => SetValue(index, value);
}