Posts

Showing posts from 2018

Clash of clan best strategy for farming and attacking

Image
                          So telling about me I am also a coc player.Today in this post I am going to share some of the strategies and defence techniques to gain more trophies at th8 base. So let's start.....  1 . DEFENCE The foremost thing in a base to gain more trophies is to have a good defence. You should never rush while playing.I know there are some time when we think that might upgrading the townhall is good idea but it is not. To gain more and more trophies we should first upgrade our defences to the max level of that townhall. Now how to upgrade effectively for defence:- First upgrade defence buildings Secondly upgrade all the resource buildings as it gives advantage because upgrading the building increases it's hitpoint. Next, your base design must be good.Search some site for good base designs. 2. TROOPS AND SPELLS After defence the second most important thing for a good bas...

scanf in c

Image
So what is scanf function in C? What is the use of scanf function in C language? In this post we are going to see the detailed explanation about scanf function and its use in writing a C program. The scanf function is a library function .Library functions are by default declared in the C language. Scanf function in c allows compiler to accept the input given by the user using keyboard and is often referred to as counter part of printf function because printf function is used to display output on the screen whereas it takes input. For us to be able to use scanf() function,it is necessary to use #include<stdio.h> at the beginning of the program.As discussed earlier it is a preprocessor directive and it's objective will be discussed later.For now just remember to use it wherever you are using scanf() function. In C programming the scanf() function is used to read different type of data.The different type of data includes integer,real,character.It is also used t...

"Hello, world!" program||hello world

Image
This post will describe writing the first "hello world" C program using a compiler.Here i am using codeblocks as a compiler tool.You can use any other compiler if you want.A detailed post about various compilers will be given in the next blog post. Here are few things that this post is all about.T his post will be covering all the detailed explanation of how to:  Write a c program: how to write the program in the compiler Its basic components: components here is mainly the syntanx and the function used in the program. How to compile and run the c program: this section will deal with compiling and running the program.I have include links for some compiler you can check out if you don't have any compiler. Output of the given program: as always in the last we are going to see the output of the given program on the screen. This is the simplest program of the c language.The reason why i have included it here is as it is the first program of the c langua...