Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the value of b
if a=5;
b=++a + ++a

Answer Posted / sandeep

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int a=5,b;
if(a==5)
{
b=++a + ++a;
Console.WriteLine(b);
Console.ReadLine();
}
}
}
}

answer is 13

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

975


what is a constant pointer in C

1095


What is volatile variable in c?

1054


What are the types of pointers in c?

972


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

1096


What is a built-in function in C?

1513


application attempts to perform an operation?

1917


What is the purpose of 'register' keyword?

1049


how is the examination pattern?

1965


How is a structure member accessed?

1060


Which built-in library function can be used to match a patter from the string?

1237


How does selection sort work in c?

984


Explain the difference between malloc() and calloc() function?

988


What do you mean by invalid pointer arithmetic?

1003


What is use of null pointer in c?

959