Monday, 31 July 2017

File Extension Check

<html>
<head>
    <title>Girfa : Student Help</title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    <script>
        function filecheck()
        {
            var extension = $('#file').val().split('.').pop().toLowerCase();

            if ($.inArray(extension, ['png', 'jpg', 'jpeg']) == -1) {
                alert('Sorry, invalid extension.');
               
            }
            else
                alert('ok Fine');

Saturday, 29 July 2017

Autocomplete


autocomplete-jquery





Download Source Code
Next Topic



Thursday, 27 July 2017

M3-R4 ‘C’ LANGUAGE July, 2014 Solved

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH ‘C’ LANGUAGE July, 2014 Solved


1. Multiple Choice

1.1 : B
Explanation : void is used to indicate that a function will not be return any data to calling function. You should also use void in place of argument for when function does not takes argument but it’s optional.
If you left blank of return type then int will be consider as default return type of given  function. 

1.2 : C
1.3 : B
Explanation : Name of an array is constant pointer which point first element when 5 added to pointer then it jump 5 places to forward direction.

Write a program to copy a file into another file.

Q : Write a program to copy a file into another file.

Answer : 


#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main(int argc,char *argv[])
{
     FILE *infile,*outfi