struct tag{
auto int x;
static int y;
};main()
{
struct tag s;
s.x=4;
s.y=5;
printf(ā%dā,s.x);
}
Answer Posted / vishal soni
There is errors......
Because auto can't write in structure scope.... It is in functions
Is This Answer Correct ? | 13 Yes | 3 No |
Post New Answer View All Answers
what is the structure pointer?
Why do we use null pointer?
what is ur strangth & weekness
Where we use clrscr in c?
Distinguish between actual and formal arguments.
Is a house a mass structure?
Explain how do you sort filenames in a directory?
What is a string?
Why c is faster than c++?
What is a MAC Address?
What is meant by int main ()?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
What is string function in c?
write a program fibonacci series and palindrome program in c
What is a macro, and explain how do you use it?