2. What does static variable mean?
Answers were Sorted based on User's Feedback
Answer / sai
static variable in c defined as the value of the static
variable is fixed in that program.
That means the chages will not effect the static variable
values.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / avik bagh
A static variable is a variable that you can call and use without using an object of the class it is a part of. You can use a static variable using just the class name.
| Is This Answer Correct ? | 1 Yes | 0 No |
You are given a string which contains some special characters. You also have set of special characters. You are given other string (call it as pattern string). Your job is to write a program to replace each special characters in given string by pattern string. You are not allowed to create new resulting string. You need to allocate some new memory to given existing string but constraint is you can only allocate memory one time. Allocate memory exactly what you need not more not less.
What is the full form of getch?
What is the use of in c?
C,c++, Java is all are structural oriented or procedure oriented language..?
how do u find out the number of 1's in the binary representation of a decimal number without converting it into binary(i mean without dividing by 2 and finding out the remainder)? three lines of c code s there it seems...can anyone help
what are the files which are automatically opened when a c file is executed?
what is difference between C and C++
Is c call by value?
what wud be the output? main() { char *str[]={ "MANISH" "KUMAR" "CHOUDHARY" }; printf("\nstring1=%s",str[0]); printf("\nstring2=%s",str[1]); printf("\nstring3=%s",str[2]); a)string1=Manish string2=Kumar string3=Choudhary b)string1=Manish string2=Manish string3=Manish c)string1=Manish Kumar Choudhary string2=(null) string3=(null) d)Compiler error
How can I copy just a portion of a string?
what is the output on the screen? int n; n=printf("my name is %d",printf("kiran %d",printf("kumar"))); printf("\n %d \n",n);
Why double pointer is used in c?