Thursday 11 January 2018
Forgot & in scanf
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Wednesday 10 January 2018
Dynamic records using structure
Q : Write a program to input name of age record of a company. How many records have to input? It will ask at run time. After input complete, program will print all the records with average age.
Solution :
/*==============================
Girfa Student Help
Program : Age calculation in dynamic
structure
More Program :
http://girfahelp.blogspot.in/p/c-language-structure-programming.html
================================*/
#include<stdio.h>
#include<conio.h>
typedef struct stu
{
char name[20];
int age;
}student;
void main()
{
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Monday 8 January 2018
Java Script Array of object
Java script support object data
type which can be used to store data as in structure ( C Language). Object of array,
you can use for pass bulk of record to server in ajax mvc application. Object
of array minimize your work and enable you to process records instead of
individual variable. Following code demonstrate to handle array of object with
input and print operation.
<html>
<head>
<title>Girfa
Java Script Array of object</title>
</head>
<body>
<h2>
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Sunday 7 January 2018
Average of every third integer between 1 to 100
Q : Write and explain the action of WHILE statement. Develop a program in ‘C’ language to compute the average of every third integer number lying between 1 and 100. Include appropriate documentation.
Solution :
Read While loop
Program :
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Wednesday 3 January 2018
Structure array input output program
Q : Define a structure of employees of an organization with the following fields:
Empno, Empname, Date_of_joining, Salary, Department
Write a program which accepts names of ten employees and print them on the screen
Solution :
/*==============================
Girfa Student Help
Program : Structure 10 record input/output
More Program :
http://girfahelp.blogspot.in/p/c-language-structure-programming.html
================================*/
#include<stdio.h>
#include<conio.h>
typedef struct stu
{
int Empno;
char Empname[50];
char Date_of_joining[12];
int Salary;
char Department[30];
}Student;
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Tuesday 2 January 2018
Handle multiple checkbox PHP
Handle multiple checkbox knowledge is required while there
is a need to take user choice through
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Thursday 28 December 2017
Validate 10 Digit Phone Number
Enter Phone Number :
Code
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<title>Girfa :
Phone number validate</title>
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Thursday 21 December 2017
Query String PHP
Query string is part of an URI which is use to pass some
information in URL. Information pass by a query string can be used by server or
client by java script or any server side language. Query string is one most
powerful method to pass additional information about web processing application
but query string is not recommended to pass sensitive information because query
string put flat text which can be read by anyone.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Wednesday 20 December 2017
Dynamic Memory allocation C language
Memory is storage unit which every program need for their
operation. When you run your program then a request is made to OS for memory
allocation. There are two types of memory allocations are used in programming.
- Static
- Dynamic
Static memory allocation is fix allocation. It cannot be change during run time. Static
memory allocation is better option in case when we know exactly how much amount
of memory need. For example holding roll number marks of student etc.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Tuesday 19 December 2017
IDENT_CURRENT SQL Server
IDENT_CURRENT return last inserted identity field value from any session any scope table.
One most interesting things which surprise me while I had used this first time. Which is follows
You can get SQL server generated identity value which inserting row, means it is not necessary that identity value only can get after save a row. Not at all!
You can use this feature while creating some userid and roll number type field in many applications.
i.e: 10000001,2000829 etc.
CREATE TABLE dbo.stu(
ID
INT IDENTITY NOT NULL PRIMARY KEY,
Roll
varchar(20),
Name
VARCHAR(40) NOT NULL
City
VARCHAR(40) NOT
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Saturday 16 December 2017
Nested Loop
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Temporary Table in SQL Server store procedure
declare @mytbl as table
(
id
bigint,
name
varchar(30),
mobileno
varchar(30),
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Friday 15 December 2017
Sort Array using pointer
Question : Write a function in ‘C’, using pointers for the array of elements, for sorting the elements.
Solution :
#include<stdio.h>
#include<conio.h>
void sort(int*);
void main()
{
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Thursday 14 December 2017
Sort an Array using pointer
Q : What do you mean by a pointer variable? Write a function in ‘C’, using pointers for the array of elements, for sorting the elements.
Solution :
Pointer
A pointer is a special type of variable which hold physical address of a non pointer variable.Symbol * is used to make a pointer variable. Programmer can change a variable value from another location with the help of pointer. Call reference is an example of pointer , in which a variable physical address pass to a function and any change made inside of function direct effect actual value of passed variable due to pointer.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Monday 11 December 2017
Show Modal Using Html.ActionLink
This post will give you an idea about how can you show a
bootsrap modal using Html.ActionLink. I will also show you that how can you
call a java script function with argument while showing modal.
Ones you will be able to call java script function while
showing modal then you will be able to fetch data from server using ajax.
Hyperlink Code :
@Html.ActionLink("Detail", "_myModal", "Usertask", new { id = item.ID }, new { data_toggle = "modal", data_target = "#myModal", onclick = "test("+item.ID +");" })
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Saturday 9 December 2017
Structure Example
Q : What is meant by structure data type? How do we reference the elements of a structure?
Give example of how a value of a structure can be assigned to another structure.
Solution :
A structure is user defined data type which is used to store
record based data. Structure is useful when there is a need to process record
type data for example student record which is a combination of more than
variable (roll,name,class,marks etc). Structure encapsulates more than one
variable into a single logical unit. Without structure, processing of record
based data is not an easy task. Programmer need to declare many variables with
different name. Which increase complexity?
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Structure C Language
A structure is user defined data type which is used to store record based data. Structure is useful when there is a need to process record type data for example student record which is a combination of more than variable (roll,name,class,marks etc). Structure encapsulates more than one variable into a single logical unit. Without structure, processing of record based data is not an easy task. Programmer need to declare many variables with different name. Which increase complexity?
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Friday 8 December 2017
C Language Practice Question
O level ‘C’ Language
All questions are
mandatory of part 1. Each question carries 1 mark for Part 1, Part 2 marks
written front of question.
Multiple Choice
1. Example of exit control loop.
(A) do-while
(B) for
(C) while
(D) All
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Saturday 2 December 2017
Jquery Drop Down Menu Operation
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Thursday 30 November 2017
series
Q : Write a program to compute the following series:
x + x3 / 3! + x5/ 5! + …
To a given accuracy for x from 00 to 1800 in the steps of 100, use a inbuilt function FACT(n) to compute the factorial.
Solution :
x + x3 / 3! + x5/ 5! + …
To a given accuracy for x from 00 to 1800 in the steps of 100, use a inbuilt function FACT(n) to compute the factorial.
Solution :
#include<stdio.h>
#include<conio.h>
int fact(int);
void main()
{
int x,step,y,i;
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Subscribe to:
Posts (Atom)