Answer Posted / pritam
if(a < (b+c))
if( b < (c+a))
if(c < (a+b))
printf("its a triangle\n");
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
How can I find out if there are characters available for reading?
please give me some tips for the placement in the TCS.
What are examples of structures?
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); }
What are the types of unary operators?
How can you check to see whether a symbol is defined?
Explain what standard functions are available to manipulate strings?
What is ambagious result in C? explain with an example.
What are qualifiers and modifiers c?
Can you explain the four storage classes in C?
Can a variable be both constant and volatile?
What are the basic data types associated with c?
Explain how can you restore a redirected standard stream?
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
what is the format specifier for printing a pointer value?