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
Write a program to swap two numbers without using third variable in c?
Is there a way to jump out of a function or functions?
What is the use of structure padding in c?
What are the preprocessor categories?
Without Computer networks, Computers will be half the use. Comment.
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
Tell me is null always defined as 0(zero)?
What is volatile keyword in c?
What is an array in c?
What are formal parameters?
Explain #pragma statements.
How can I change their mode to binary?
what are the different storage classes in c?
Differentiate between calloc and malloc.
What are run-time errors?