#include<stdio.h>
main()
{
int a=1;
int b=0;
b=++a + ++a;
printf("%d %d",a,b);
}

Answer Posted / m.karthiga

3 6

Is This Answer Correct ?    19 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I determine whether a machines byte order is big-endian or little-endian?

617


What is nested structure in c?

613


Explain what is #line used for?

608


What is the scope of static variables in c language?

626


What is a loop?

554






Is it possible to execute code even after the program exits the main() function?

813


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

636


What is c variable?

552


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

656


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

1916


What is meant by errors and debugging?

647


When would you use a pointer to a function?

589


What is this infamous null pointer, anyway?

609


main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

920


Where are c variables stored in memory?

597