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
What is function prototype in c with example?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
What are the advantages and disadvantages of a heap?
Is there a built-in function in C that can be used for sorting data?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What is spark map function?
Can variables be declared anywhere in c?
Is main is user defined function?
What does emoji p mean?
Explain goto?
How can you tell whether a program was compiled using c versus c++?
What is a constant?
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
What is pass by reference in c?
Is Exception handling possible in c language?