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


Please Help Members By Posting Answers For Below Questions

what is the structure pointer?

1638


Why do we use null pointer?

600


what is ur strangth & weekness

1810


Where we use clrscr in c?

693


Distinguish between actual and formal arguments.

584






Is a house a mass structure?

635


Explain how do you sort filenames in a directory?

599


What is a string?

660


Why c is faster than c++?

624


What is a MAC Address?

622


What is meant by int main ()?

712


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?

1507


What is string function in c?

529


write a program fibonacci series and palindrome program in c

628


What is a macro, and explain how do you use it?

621