161. #include
void main()
{
int i,count=0;
char *p1="abcdefghij";
char *p2="alcmenfoip";
for(i=0;i<=strlen(p1);i++) {
if(*p1++ == *p2++)
count+=5;
else
count-=3;
}
printf("count=%d\n",count);
}
Answer: 6
Explanation:Here is no explanation for this answer
Workspace
Global Edge
162. #include
int main()
{
char *mess[]={"Have","a","nice","day","Bye");
printf("%d \t %d",sizeof(mess),sizeof(mess[1]));
}
Answer: 20 4
Explanation:Here is no explanation for this answer
Workspace
Global Edge
163. char ( * ( f ( )) [ ])()
Answer: f is a function returning pointer to array[] of pointer to function returning char)
Explanation:Here is no explanation for this answer
Workspace
Global Edge
164. In each of the following questions find out the alternative which will replace the question mark.
Flow : River :: Stagnant : ?
Answer: Pool
Explanation:As Water of a River flows similarly water of Pool is Stagnant.
Workspace
Global Edge