Sunday, 10 September 2017

Assignment Operator


Question: What is the name = operator in mathematics?
Answer: is equal to

Write In C language terminology this operator is known as Assignment operator which is use to assign right hand side value into left hand size variable with overwrite mode. An assignment operator has following attributes.
  • Place right hand side data into left hand side variable.

Saturday, 9 September 2017

Vowel count separately Program

Q : Write a program to calculate number of vowels (a,e,i,o,u) separately in an entered string.?

Solution :


#include<stdio.h>
void main()
{
     int a,e,i,o,u,index;
     char str[50];
     a=e=i=o=u=0;
     printf("Enter string>> ");
     gets(str);
     for(index=0;str[index]!='\0';index++)
     {
          switch(str[index

Thursday, 7 September 2017

CSS Media Query

<html>
<head>
<title>@Media Query Girfa</title>
<style>
.container h1
{
     margin-top:15%;
     font-size:4em;
      line-height: 1.2em;
    text-transform: uppercase;
    font-weight: bold;

Wednesday, 6 September 2017

Identifier C Language

Identifier is user defined name given to function, variable, structure, union, array etc. followings are rules to name an identifier.
  • Name must be start with alphabet or underscores
  • An identifier may have numbers but not used as first c