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
where are auto variables stored? What are the characteristics of an auto variable?
What are control structures? What are the different types?
What does the c preprocessor do?
What is difference between class and structure?
What is ## preprocessor operator in c?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
What is pragma in c?
Explain how can I avoid the abort, retry, fail messages?
What is the difference between the local variable and global variable in c?
Write a program to print “hello world” without using semicolon?
What is 1f in c?
What are the different properties of variable number of arguments?
What is int main () in c?
Explain how do you override a defined macro?
Can we access array using pointer in c language?