int age=35;
if(age>80)
{Console.WriteLine("Boy you are old");}
else
{Console.WrieLine("That is a good age");}
No Answer is Posted For this Question
Be the First to Post Answer
What are the uses of pointers?
What is "map" in STL?
How do you show the declaration of a virtual constructor?
what is importance of data sturture in a programming language?
22 Answers L&T, TCS, Wipro,
What is data abstraction? How is it different from data encapsulation?
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
Define friend function.
Which function should be used to free the memory allocated by calloc()?
When is dynamic checking necessary?
Define a program that reads two matrices of size 3x3 with real values from the user then prints their sum, difference and multiplication.
Live example for static function?
class X { public: int x; static void f(int z); }; void X::f(int y) {x=y;} What is the error in the sample code above? a) The class X does not have any protected members. b) The static member function f() accesses the non-static z. c) The static member function f() accesses the non-static x. d) The member function f() must return a value. e) The class X does not have any private members.