#include<stdio.h>
void main()
{
int a,b,c;
a=b=c=1;
c=++a || ++b && ++c;
printf("%d\t%d\t%d",a,b,c);
}
Answer Posted / biren
a=2 b=1 c=1
why plz tell me
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
How is = symbol different from == symbol in c programming?
What is pointer and structure in c?
What is string length in c?
Should a function contain a return statement if it does not return a value?
How can I write functions that take a variable number of arguments?
What is keyword in c?
Are the expressions * ptr ++ and ++ * ptr same?
What is the difference between malloc() and calloc()?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
How can I open files mentioned on the command line, and parse option flags?
Without Computer networks, Computers will be half the use. Comment.
What is the easiest sorting method to use?
Is struct oop?
what are bit fields? What is the use of bit fields in a structure declaration?
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); }