proc() {

static i=10;
printf("%d",i);
}

If this proc() is called second time, what is the output?

Answer Posted / krupakar

The answer is 10.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is structure in c explain with example?

645


Explain how can I convert a string to a number?

647


FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1206


How pointer is different from array?

585


How do I convert a string to all upper or lower case?

633






What is dynamic dispatch in c++?

563


How can I find out if there are characters available for reading?

649


What is return type in c?

646


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1323


What are inbuilt functions in c?

562


Write a program to identify if a given binary tree is balanced or not.

691


What does static variable mean in c?

657


What is the acronym for ansi?

636


What are the applications of c language?

630


#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

786