"what does static int do?" Code Answer's
You're definitely familiar with the best coding language C++ that developers use to develop their projects and they get all their queries like "what does static int do?" answered properly. Developers are finding an appropriate answer about what does static int do? related to the C++ coding language. By visiting this online portal developers get answers concerning C++ codes question like what does static int do?. Enter your desired code related query in the search bar and get every piece of information about C++ code related question on what does static int do?.
what does static int do?
#include <iostream>
using namespace std;
void fun()
{
static int i = 10; //static makes it global throughout the program
i++;
cout << i;
}
int main()
{
fun();
fun();
fun();
return 0;
}
ans: 111213
All those coders who are working on the C++ based application and are stuck on what does static int do? can get a collection of related answers to their query. Programmers need to enter their query on what does static int do? related to C++ code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about what does static int do? for the programmers working on C++ code while coding their module. Coders are also allowed to rectify already present answers of what does static int do? while working on the C++ language code. Developers can add up suggestions if they deem fit any other answer relating to "what does static int do?". Visit this developer's friendly online web community, CodeProZone, and get your queries like what does static int do? resolved professionally and stay updated to the latest C++ updates.