#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
How can I determine whether a machines byte order is big-endian or little-endian?
What is nested structure in c?
Explain what is #line used for?
What is the scope of static variables in c language?
What is a loop?
Is it possible to execute code even after the program exits the main() function?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
What is c variable?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
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?
What is meant by errors and debugging?
When would you use a pointer to a function?
What is this infamous null pointer, anyway?
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); }
Where are c variables stored in memory?