Saturday, 15 July 2017

Greatest Number from array using Pointer

Q : Write a program using pointer to find greatest number in an array.

Solution : 

#include<stdio.h>
#define MAX 5
void main()
{
     int ar[MAX],*pt,h,i;
     for(i=0;i<MAX;i++)
     {
          printf("Enter Number>> ");
          scanf("%d",&ar[i]);
     }

Table read with Java Script


This is how I consummate reading a table in javascript. Basically I study down into the rows and then I was able to drill down into the individual cells for each row. This should give you an idea.

Roll Name City
101 Sona Varanasi
102 Mona Chandauli
103 Amit Jaunpur





<html>
<head>
    <title>Girfa Student Help : Table read with javascript</title>
    <script>
        function GetData()
        {

Bitwise operator


Logical Operators

Logical operators are used to make a decision on behalf of some criteria. We evaluate given criteria in terms of (and,or,not). Decision making process changed with given terms. If AND  is used there then all given criteria must be true to become result true and in case of OR , condition become true if any given criteria return true. Not reverse result True to false and vice versa.

Friday, 14 July 2017

Variable to SQL Query

Sometimes there is a need to store a SQL query output to a variable in store procedure. This feature gives programming flexibility to apply more action while generating output.
For example, you can apply more group option in a simple way which was complicated in a single query or if you want to concatenate the output of some query etc.

USE [Girfa_Portal]
GO
SET ANSI_NULLS ON