Tuesday 30 January 2018

Count frequency of each character

Q : Write a program to count frequency of each character individually.

Solution : 

/*==============================
     Girfa Student Help
     Program : Count frequency of each character
     More Program :http://girfahelp.blogspot.in/p/1.html
================================*/
#include<stdio.h>
#include<conio.h>
#define MAX 50
void main()
{
     char ar[MAX],temp[26];
     int i,j,k,s;
     clrscr();
     printf("Enter String>> ");
     gets(ar);
     temp[0]=ar[0];
     for(i=0,j=1;ar[i]!='\0';i++)
     {
          for(k=0;k<j;k++)
          {

Saturday 27 January 2018

Bootsrap Horizontal Responsive Menubar




Disadvantage of nested if-else

Disadvantage of nested if-else


  • When number of criteria increase complexity of maintenance of code is also increased
  • If indenting is not proper maintained then it is difficult to debugging because a programmer faces difficulty associate statement to related block.
  •  Else-if leader does not specify better interpretation of business logic to programmer than switch case.

Thursday 25 January 2018

2D Array Input/Ouput

Q :  Define a two dimensional array ‘int a[10][10]’. Write a ‘C’ program to initialize this array with numbers between 0 and 99. Then print the contents of ‘a’.

Solution : 

/*==============================
     Girfa Student Help
     Program : 2D Array Input/Ouput
     More Program :http://girfahelp.blogspot.in/p/2-d-array-programming.html
================================*/
#include<stdio.h>
#include<conio.h>
#define MAX 10
void main()
{
     int a[MAX][MAX],r,c,s;
     clrscr();
     for(r=0,s=