without using control structures and control structures find the max and min of given 2 nos
Answer / chavidi
by using ternary operators we can find the max number among
2 numbers
a>b?a:b;
| Is This Answer Correct ? | 5 Yes | 2 No |
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Define Spanning-Tree Protocol (STP)
What is the result main() { char c=-64; int i=-32 unsigned int u =-16; if(c>i){ printf("pass1,"); if(c<u) printf("pass2"); else printf("Fail2");} else printf("Fail1); if(i<u) printf("pass2"); else printf("Fail2") } a)Pass1,Pass2 b)Pass1,Fail2 c)Fail1,Pass2 d)Fail1,Fail2 e)none
What are pointers?
0 Answers Accenture, Tavant Technologies, Zensar,
How to write a code for reverse of string without using string functions?
Can a binary search tree be used as an index? If yes, how? Explain
What is the main difference between calloc () and malloc ()?
How to calculate sum
11. Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage
Why data types in all programming languages have some range? Why ritche have disigned first time likethat?Why not a single data type can support all other types?
How can I invoke another program or command and trap its output?
What are the 4 data types?