The #include statement in C and C++ is used to incorporate (include) a file in the compilation unit at the point where the #include statement is encountered. It is used to incorporate commonly used files, often (but not always) rarely changed files, so that the developer does not need to incorporate common code more than once in a project.
Chat with our AI personalities
#include <stdio.h> static int myvar1, myvar2; int main (void) { puts ("It was easy"); return 0; }
By learning how to program on C+.
#include<
#include<iostream.h> #include<conio.h> #include<math.h> void main() { int i,j; clrscr(); for(i=3;i<=1000;i++) { for(j=2;j<=i;j++) { if(i%j==0) break; } if(i==j) cout<<j<<"\t"; } getch(); } //try it by apurba sinus
To swap two variables without using a third variable, use exclusive or manipulation... a ^= b; b ^= a; a ^= b;