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
Who developed c language?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
When a c file is executed there are many files that are automatically opened what are they files?
Which is better oop or procedural?
What is the size of enum in bytes?
write a proram to reverse the string using switch case?
What is #line used for?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
What is the difference between array and linked list in c?
Explain how can you restore a redirected standard stream?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What is pointers in c?
What are the different types of control structures in programming?
How do I convert a string to all upper or lower case?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions