Write a program to show the workingof auto variable.
Answers were Sorted based on User's Feedback
Answer / raj
#include<stdio.h>
main()
{
auto int n=0;
{
int n=1'
printf("%d",n);
}
}
Is This Answer Correct ? | 10 Yes | 1 No |
Answer / shrikantauti
main()
{
auto int i,j;
printf("%d%d", i,j);
}
/*
output could look like:
1211 221
*/
Is This Answer Correct ? | 6 Yes | 3 No |
what is the advantage of function pointer
16 Answers CMC, CS, Freshdesk, L&T, LG Soft, Matrix, TCS,
How to print %d in output
Explain what does the function toupper() do?
What is the auto keyword good for?
What is the use of the restrict keyword?
Explain what is the use of a semicolon (;) at the end of every program statement?
Define a structure to store roll no, name and marks of a student. Using the structure of above write a ‘C’ program to create a file “student.dat”. There must be one record for every student in the file. Accept the data from the user.
What is a static variable in c?
Do array subscripts always start with zero?
how to make program without <> in library.
What is calloc()?
Explain how do you declare an array that will hold more than 64kb of data?