2,012 views
0 votes
0 votes
output of the following program?

#include<stdio.h>
int main()
{
    char arr[10];
    arr = "world";
    printf("%s",arr);
    return 0;
}

Why compilation error in this program , explain briefly?

Please log in or register to answer this question.

Related questions

70
views
1 answers
1 votes
kirmada asked 3 days ago
70 views
#include <stdio.h> int main() { // Write C code here int i=10,*p,**q,***r; p=&i; *p=15; q=&p; **q=20; r=&q; ***r=*p+1; printf("%d",i); return 0; }answer the output as integer _________
78
views
1 answers
1 votes
kirmada asked 3 days ago
78 views
#include <stdio.h> int main() { int (*a)[2]; int arr[4][4]={1,2,3,4,6,7,8,9}; a=arr; ++a; printf("%d",**a); return 0; }what is the answer NUMARICAL--------------------------------?
54
views
1 answers
1 votes
shivamSK asked 4 days ago
54 views
#include <stdio.h> void f(int (*x)(int)); int myfoo(int i); int (*foo)(int) = myfoo; int main() { f(foo(10)); } void f( ... i; }sanfoundry C programming Questiona) Compile time errorb) Undefined behaviourc) 10 11d) 10 Segmentation fault 
68
views
2 answers
1 votes