Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the real time usage volatile?

Answer Posted / stylish_312

volatile int i=10;
main()
{
fun()
{
while(i==10)
{
...
}
printf("This will print..\n");
}
}
ANS:
if we are not using volatile int ,the loop will be keep on
exeecuting,so printf statement will not print...to break
this loop declare the variable as a volatile....

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the 10 different models of writing an addition program in C language?

1897


What are different types of operators?

1043


What is the purpose of ftell?

1083


What is the difference between array and pointer?

1018


a c code by using memory allocation for add ,multiply of sprase matrixes

2800


Explain spaghetti programming?

1250


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

1069


Write a program to print numbers from 1 to 100 without using loop in c?

1081


Explain what is the difference between text files and binary files?

1155


Write a program to reverse a given number in c language?

1118


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

1004


What is the use of in c?

1027


write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

2102


Why static is used in c?

1096


What does dm mean sexually?

1308