Elearning , Interview Questions And Answers

Google

main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } Ans Compilation error giving it cannot be an modifible 'lvalue' 7). -------------------------------------------------------------- #include<stdio.h> main() { char *p1; char *p2; p1=(char *) malloc(25); p2=(char *) malloc(25); strcpy(p1,"Ramco"); strcpy(p2,"Systems"); strcat(p1,p2); printf("%s",p1); } Ans : RamcoSystems 8). -------------------------------------------------------------- [1]. The following variable is available in file1.c static int average_float; Ans all the functions in the file1.c can access the variable