Showing posts with label C programming. Show all posts
Showing posts with label C programming. Show all posts

Friday, 7 December 2012

Mathematical functions in C language


Q) Which statement will you add in the following program to work it correctly?

#include<stdio.h>
int main()
{
    printf("%f\n", log(36.0));
    return 0;
}

A. #include<conio.h> B. #include<math.h>
C. #include<stdlib.h> D. #include<dos.h>

Explanation:

Monday, 3 December 2012

Variables name in C

Variable is the name given to the memory location, it is not the actual memory, it is just the name to the memory location.

Variable name can be in UPPER CASE or it can be also in lower case.

Variable can also have underscore( _ ) and numbers. Apart from this variable can't have anything else.

Variable can be started with only alphabets ( UPPER and lower case) and underscore but not with numbers , numbers and underscore can be used in the middle of the variables.

Sunday, 2 December 2012

fmod(x,y) function in C

fmod(x,y) function in C, what is do?


It calculates x modulo y i.e., the remainder of x/y.
This function is the same as the modulus operator, but fmod() performs floating point divisions.

Example:

C programming for GATE 2013

Hi friends, this post is for those candidates who are going to appear GATE 2013 exam and those who want to learn C programming. In this month we will learn complete C programming.So check regularly this blog for the posts. Daily one topic will be discussed, if you have any query you can also comment, your queries will be resolved spontaneously.

Refer you friends also.

Join us on Facebook

Career Laucher

You can also add us in your Google circle, just click on the slider menu on the right hand side and click on the G+ icon and then click on add to circle.

Best geography books for UPSC prelims, mains

This post is intended to clear the confusion that prevails among the aspirants over how to prepare for UPSC geography and the best books f...