Posts

Showing posts from December, 2018

File Processing

Processing a file in C is surprisingly easy all you have to do is declare a file FILE *fileVar like so. whenever you want to open a file all you have to do is fileVar = fopen("fileName.ext","mode"); there are many types of mode: r Open for reading. If the file does not exist, fopen() returns NULL. rb Open for reading in binary mode. If the file does not exist, fopen() returns NULL. w Open for writing. If the file exists, its contents are overwritten. If the file does not exist, it will be created. wb Open for writing in binary mode. If the file exists, its contents are overwritten. If the file does not exist, it will be created. a Open for append. i.e, Data is added to end of file. If the file does not exists, it will be created. ab Open for append in binary mode. i.e, Data is added to end of file. If the file does not exists, it will be created. r+ Open f...

Cloud Computing

New topic New question what is cloud computing? Cloud computing is a shared pools of computer system resources and high-level services that can be maintained with minimal effort over the Internet. Three types of service model: Platform as a service (PAAS) Infrastructure as a service(IAAS) Software as a service (SAAS) Cloud Types: there are three types of cloud 1. Public Cloud: public cloud is open for general use and is usually free 2. Private Cloud: a private cloud is usually owned by an organization, although there's little to no difference with public cloud the security is a lot more tight 3. Hybrid Cloud: hybrid cloud combines the two types of cloud and bound them together. why should we use cloud? efficiency flexibility  disaster recovery security and many more

Function and Recursive

ola you might think when learning about function it's a hard part of programming but fret not for it is an easy process and it'll make your programs a lot more cleaner and tidier. when defining a function you may use any data types as long as you're able to use return, if for some reason you don't want to use return you might find void data type a lot more useful. don't forget whenever you want to use function you'll also need parameter in it. int functionName( int parameter1, int parameter2, ...){  some program;  return; } int main(){  someVariable = functionName(para1,para2,...);  return 0; } that's the basic when calling an int based function void funcName(int para1, int para2, ...){  some program } int main(){  funcName(para1,para2,...);  return 0; } when using void you don't need th return command as the function will do everything inside it. now what about recursive.????? all you have to know about recursive i...