#include <stdio.h>
main()
{
char * str = "hello";
char * ptr = str;
char least = 127;
while (*ptr++)
least = (*ptr<least ) ?*ptr :least;
printf("%d",least);
}
Answer / susie
Answer :
0
Explanation:
After ‘ptr’ reaches the end of the string the value pointed
by ‘str’ is ‘\0’. So the value of ‘str’ is less than that of
‘least’. So the value of ‘least’ finally is 0.
| Is This Answer Correct ? | 2 Yes | 0 No |
Write a Program that Inputs 10 Numbers in an Array and Show the Maximum Number
Display the time of the system and display the right time of the other country
How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?
main() { int i =0;j=0; if(i && j++) printf("%d..%d",i++,j); printf("%d..%d,i,j); }
how many processes will gate created execution of -------- fork(); fork(); fork(); -------- Please Explain... Thanks in advance..!
#include <stdio.h> main() { char * str = "hello"; char * ptr = str; char least = 127; while (*ptr++) least = (*ptr<least ) ?*ptr :least; printf("%d",least); }
to remove the repeated cahracter from the given caracter array. i.e.., if the input is SSAD output should of SAD
void main() { char a[]="12345\0"; int i=strlen(a); printf("here in 3 %d\n",++i); }
{ int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
main() { int a[10]; printf("%d",*a+1-*a+3); }
how to swap 3 nos without using temporary variable
how to test pierrot divisor