The extern keyword is used to tell the compiler that a data object is declared in a different *.cpp or *.c file. So there wont be any new memory is allocated for these variables. Check the below example and understand the working. //file1.cpp #include <iostream.h> int x; extern void func2(); void func1(void) { [...]
It is used whenever a base class pointer is pointing to its derived class. In such a case when a user tries to delete the base class pointer then it results in deallocating the memory occupied by the base class.Therefore instead the derived class getting destroyed the base class does. Now as the base class [...]
Consider if you want to allocate a two dimensional array: int a[10][3]; Then you have to allocate the rows first and then columns using for loops. Here is the C example code. int **a, x; //Allocate memory a = malloc(sizeof(int *) * 10); for(x = 0; x < 10; x ++) { a[x] = malloc(sizeof(int) [...]
To run any php file you need to install Apache web server on your localhost. Also you need to install MySQL server for any database programming. You can install these separately or there is easy way to achieve the same by installing XAMPP. XAMPP is an easy to install Apache distribution containing MySQL, PHP and [...]
PHP stands for “Hypertext Preprocessor“, is a server-side scripting language used to create dynamic Web pages. This can be embedded to HTML pages. This is very easy scripting language compare to other scripting languags. The goal of the language is to allow Web developers to write dynamically generated pages quickly. PHP supports many databases like [...]
This is the one stop educational site for all Electronic and Computer students. If you want to learn something new then we are here to help. We work on Microcontroller projects, Basic Electronics, Digital electronics, Computer projects and also in basic c/c++ programs.
#Home #Sitemap #Submit #Terms of Use
Copyright©2011 electrofriends.com All Rights Reserved
Contact:info@electrofriends.com | Powered by Dhyeya