Saturday, 16 December 2017
Nested Loop
![](http://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieQnBSliKz82rpTOE_CwtauoRRhbVXzQKffAPOYJrMBCWXt8R-uY8Wj5VCbOBe8OSDzP0rwTYMX096G3LZSd-NCs8tLFpBtawL_VjoBPOzBFDXvVQJnUL_9BjVAn0tSV8/s113/girfa-face.jpg)
Temporary Table in SQL Server store procedure
declare @mytbl as table
(
id
bigint,
name
varchar(30),
mobileno
varchar(30),
![](http://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieQnBSliKz82rpTOE_CwtauoRRhbVXzQKffAPOYJrMBCWXt8R-uY8Wj5VCbOBe8OSDzP0rwTYMX096G3LZSd-NCs8tLFpBtawL_VjoBPOzBFDXvVQJnUL_9BjVAn0tSV8/s113/girfa-face.jpg)
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()
{
![](http://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieQnBSliKz82rpTOE_CwtauoRRhbVXzQKffAPOYJrMBCWXt8R-uY8Wj5VCbOBe8OSDzP0rwTYMX096G3LZSd-NCs8tLFpBtawL_VjoBPOzBFDXvVQJnUL_9BjVAn0tSV8/s113/girfa-face.jpg)
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.
![](http://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieQnBSliKz82rpTOE_CwtauoRRhbVXzQKffAPOYJrMBCWXt8R-uY8Wj5VCbOBe8OSDzP0rwTYMX096G3LZSd-NCs8tLFpBtawL_VjoBPOzBFDXvVQJnUL_9BjVAn0tSV8/s113/girfa-face.jpg)
Subscribe to:
Posts (Atom)