what are the static variables

Answer Posted / subha raman

I have a doubt..what is the difference between.."static"
and "constant(const)"??

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

667


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

611


How many types of errors are there in c language? Explain

574


What is string constants?

662


What are multibyte characters?

645






GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

685


What does the format %10.2 mean when included in a printf statement?

1091


What are categories used for in c?

569


Why clrscr is used in c?

588


I came across some code that puts a (void) cast before each call to printf. Why?

682


main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

921


Explain bitwise shift operators?

633


What is the difference between array and pointer?

570


What does the function toupper() do?

658


Is c programming hard?

577