81. #include
#include
int myalloc(char *x, int n){
x= (char *)malloc(n*sizeof(char));
memset(x,\0,n*sizeof(char));
}
int main(){
char *g="String";
myalloc(g,20);
printf("The string is %s",g);
return 0;
}
Answer: The string is: String
Explanation:Here is no explanation for this answer
Workspace
TCS Sopra Steria
82. FUNC (int *p)
{
p = (int *)malloc(100);
printf("p:%x",p);
}
int main( )
{
int *ptr;
FUNC(ptr);
printf("Ptr:%x",ptr);
return 0;
}
Answer: Both print different values
Explanation:Here is no explanation for this answer
Workspace
Global Edge Sopra Steria
83. Is the following statement True or False
Statement:
If the condition in Step C updates the value in Box 3 instead of Box 2, then the flow chart will enter into infinite loop
Answer: FALSE
Explanation:Here is no explanation for this answer
Workspace
Capgemini Sopra Steria Accenture