Sunday, 28 June 2020

Link List vs Array

Q :Define array and link list. Give one example for each showing its usage


Answer :


Define Link List

struct node
{
     int data;
     struct node *next;
}
int ar[5];

Saturday, 27 June 2020

Whatsapp button for website


Add whatsup button at bottom right side of your website. Button will show when user scroll down because it can disturb your home page opening view. When user will click on whatsapp button it will redirect to whatsapp message mode to the given number.

<style>
    /* ========= CSS ==========*/
    .g-whatsapp {
        display: none;
        position: fixed;
        bottom: 20px;
        right: 30px;
        z-index: 99;
        cursor: pointer;
    }
</style>

Friday, 26 June 2020

Even number print using function

Q : Write a function in ‘C’ to print even numbers from 1 to 100.

Answer : 



#include<stdio.h>
#include<conio.h>
/*============================
     Girfa Student Help
     print even no. 1-100 using function
==============================*/
void print();
void main()
{

Paragraph input using scanf

Q : Write a ‘C’ program in which a scanf() function can read a complete paragraph of text.

Answer : 



#include<stdio.h>
#include<conio.h>
/*============================
      Girfa Student Help
      Paragraph input using scanf
==============================*/
void main()
{