-->

css with html to create layout

<!DOCTYPE html>
<html>
<head>
<style>
.header
{
  column-count: 1;
   
}

.nav
{
column-width:300px;
column-span:2;
float:left;
}
.content
{
column-width:700px;
}
.footer
{
column-count:1;
text-align:center;
color:blue;
}
</style>
</head>
<body>

<div class="newspaper">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.
</div>
<div class="nav">
it is navigation area
</div>
<div class="content">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.
</div>
<div class="footer">
it is footer area.
</div>


</body>
</html>

CSS concept

--------------------------------------------------------------
Let's understand css code with example.

1) css (with html)to create following layout.

   
                                                                                                                                           solution
2) to create following navigation menu
   

                                                                                                                  solution













projects in C

Some simple projects(we can say mini) done in C language using codeblocks IDE are:
------------------------------------------------------------------------------------

click the links

units
1) Friends contact management click to open pdf file
2) Simple English dictionary click to open pdf file
3) application to show inputs and outputs click to open pdf file
4) application to show use of operators click to open pdf file
5) Simple quiz context application click to open its pdf file
6) Library MGMT system click to open pdf file
7)Student record keeping systemclick to open pdf file
simple application with documentation
1.)Simple project on Dog info click for pdf file
want to use these project/code with documentation?
or
you are in need of different projects,
Please contact me at krishnaamallik@gmail.com

program to understand struct pointer using typedef

//understanding struct pointer with typedef
#include <stdio.h>
#include <stdlib.h>
typedef struct reco
{
    int a;
    float b;
    char c;
    char city[100];
}record;
int main()
{
    typedef record *p;//pointer declaration of struct type record
    p pointer;//pointer declartion
    pointer=(p) malloc (sizeof(record));//memory allocation to variable pointer
    pointer->a=10;//value assignment
    pointer->b=3.14;//value assignment
    pointer->c='a';//value assignment
    strcpy(pointer->city,"Kathmandu");//value being copied
    printf("i=%d \nf=%f\nc= %c\n",(*pointer).a,(*pointer).b,(*pointer).c);//value printing
    printf("the city=%s\n",pointer->city);
    free(pointer);
    return 0;
}

college terminal questions

Please click the given  link.
-----------------------------------------------------------------------------
for 11(science+mgmt):

click for main content(folder)

or
1)click for 2072 B.S. questions

2) click for 2073 B.S. questions

3) click for 2074 B.S. questions

4) click for 2075 B.S. questions


--------------------------------------------
for 12(management only):

click for main content(folder)
or
--------------------------------------
1)click for 2072 B.S. questions

2) click for 2073 B.S. questions

3) click for 2074 B.S. questions

4) click for 2075 B.S. questions



program to understand malloc() using struct

//understanding struct pointer
#include <stdio.h>
#include <stdlib.h>
struct reco
{
    int a;
    float b;
    char c;
};
int main()
{
    struct reco *p;//pointer declaration of struct type
    p=(struct reco *) malloc (sizeof(struct reco));//memory allocation
    p->a=10;//value assignment
    p->b=3.14;//value assignment
    p->c='a';//value assignment
    printf("i=%d \nf=%f\nc= %c\n",(*p).a,(*p).b,(*p).c);//value printing
    free(p);
    return 0;
}

to understand free() function

//understanding free()
#include <stdio.h>
#include <stdlib.h>

int main()
{
    int *x ;//pointer declaration
    x= (int*)malloc(10*sizeof(int));//allocates the memory for 10 integers(10x4=40)
                                    // to heap

    if(x==NULL)//tests whether the memory is available
    {
        printf("error in allocating");//displays error if no memory
    }
    else
    {
    printf("%d\n", sizeof(x));//prints value 4. Because the
                            //sizeof thinks what memory each value/integer will occupy
    }
    free(x);//frees the memory.
    return 0;
}