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
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
what is a constant pointer in C
What is volatile variable in c?
What are the types of pointers in c?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
What is a built-in function in C?
application attempts to perform an operation?
What is the purpose of 'register' keyword?
how is the examination pattern?
How is a structure member accessed?
Which built-in library function can be used to match a patter from the string?
How does selection sort work in c?
Explain the difference between malloc() and calloc() function?
What do you mean by invalid pointer arithmetic?
What is use of null pointer in c?