created the custom size bit data types , structures and print its size.
discussed the 6 phases of compilation.understanding of interpretation +ve and -ve numbers in system(2's compliment)
In C++ sessions there was an example in which an array was resized at runtime to hold realtime data of undefined iterations, without creating any new array with bigger size and replacing as done in v…
In C++ sessions there was an example in which an array was resized at runtime to hold realtime data of undefined iterations, without creating any new array with bigger size and replacing as done in v…
Traceback (most recent call last): File "/usr/bin/dnf", line 57, in from dnf.cli import main File "/usr/lib/python3.7/site-packages/dnf/__init__.py", line 30, in import …
Please comment on assignment of signed value (e.g -25) into an unsigned variable .
What are we assigning to that unsigned variable (2's complement of 25 ) or something else??
INTRODUCTION TO SOCKET
SOCKET : It is a communication technique like pipe which has file descriptor at one end and network connections at other end .Socket is basically the first tool through which …
struct node { int val; struct node *next;}
void ReverseLinklist(struct node* start) //argument is first node pointer as start{ struct node* first,*prev; first =…
command:
tar -cvf name.tar directoryname name.tar is the name you want to choose for your compressed tar file
for untar of the tar filecommand :
tar -xvf file.tar
Sample code for Simple Alarm Here you can set timings for a Alarm [ just for fun ] you will hear a ringtone, here is the code for that
#include"headers,h" // include , , , void make_c…
#include#include#include#include#include#includetypedef struct message{ long int msg_type; char Message[100];}message;int main(){ char mymsg[] = "this is a message"; …
The gcc compiler is a portable compiler,today it runs on different platforms .its wide use going on programming.
programming in c
here are different 4 stages compilation of a program:
1.Preprocessin…
Issue:When I am trying to insert a driver module in the kernel using 'insmod' command then it failed to insert.Command Pattern: insmod char_mod.koError: insmod: Failed to load char_mod.k…
We give some arguments in called function. But is it necessary to describe those arguments in function decralation too?I mean, even without specifying the arguments in function declaration, the funct…
Hi All,
Now you can get access of all documents available on Emblogic portal on your android device
You just need to download puffin browser from google play store
i try to install the eclipse eclipse-cpp-oxygen-3a-linux-gtk-x86_64.tar.gz file and create the eclipse executable at given path using the touch commands touch /usr/bin/eclipse and also change the mo…
I try to install the kernel 4.15.10 version in my system . but when i use the make commands then its show the error .
The error are---
[root@localhost linux-stable-4.15.10]# make CHK include/co…
Steps to follow for Implementing a Project:Step1: In Main thread, we have to create new thread(Thread1) in which block on accept occurred in infinite while loop for handling Multiple Clients.Step2: I…
I am trying to build Linux kernel with TBS(Time based scheduling) qdisc patch. . I already know how to build kernel to upgrade to a newer version, But somehow i am missing a few steps to achieve the …
Program for QUEUE Data Structure has been done , below is the program for
***************Prototype****************
int mainmenu();
typedef struct staack
{
int fp;
int rp;
int size;
i…
Declare an integer variable. Assign a value -5 to check print its positive value.
How to print the positive value because after using unsigned int it is not printing the positive value
Block on write and block on read both are faced while using pipe after mkfifo. It is a problem because in this situation prompt seems to be hanged and further operations are stopped, so we should ha…
Hii All,
i am explaining you how you can configure FTP server in your own machine in easy way
1. install vsftp packageyum install vsftpd
2.check service statussystemctl status vsftpd.service
3.start…
Hello All,
i have created a utility in linux that will automatically generate all essential files that is need to develop a C projects
for that utility i have developed a MAN Page,You can create you…
Dynamic Memory Allocation - calloc()
#include
#include
int main()
{
int i, num;
float *data;
printf("Enter total number of elements(1 to 100): ");
scanf("…
In File IO both fopen and open have same work but their methods of working and areas of use are different. Me explaining here the appropriate reasons b/w both functions:;
**Lesser System calls
…
Hello friends there are some interview questions which has been asked during interview you can put your answer over these questions.1.what is difference between function pointer and pointer to functi…
/*creating reqired Files*/
vim add.h
....
#ifndef add_h_
#define add_h_
extern int add(int , int );
#endif
...
vim add.c
/*Definition of Shared Library*/
#include
int add(int a,int b)
{
put…
What Log does this path have ?
/run/log/jounal
as in /dev : ll
log
exits with this
lrwxrwxrwx 1 root root 28 Feb 8 19:23 log -> /run/systemd/journal/dev-log =
How to open it and …
While allocating the size for the quantum of Qset pointer variable, this kind of bug occuring everytime.
Please give an explanation for this kind of bugs
[38913.266017] BUG: unable to handle kernel…
Project : Queue
Autor: Sajan Kumar Jha
Description : This project best explains the working of data handling
in queue structure.Since we know that queue is a data structure which
follows the FI…
Project : Queue DS
Autor: Sajan Kumar Jha
Description : This project best explains the working of data handling
in queue structure.Since we know that queue is a data structure which
follows th…
Designing A Student Information System Project ...
The Project should support the following
1. Add Records
2. List Records
3. Modify Records
4. Delete Records
5. Exit Program
…
Design A Grading System
Requires:
variables, data types, and numerical operatorsbasic input/outputlogic (if statements, switch statements)
Design a class that allows the user to enter the grade sco…
Full_Duplex_Chat_Application_Using_FIFO#Project : FULL_DUPLEX_CHAT_USING_FIFO#Author : Sajan Kumar JhaDescription : This project performs the full duplex operation using two FIFO.Here the two process…
#Project : IPC_SERVER_CLIENT
Description : In this project,the inter-process communication between server and Requesting client is demonstrate. Here multiple request is made by multiple Requesting cl…
While i am reading in Server add result , i am getting garbage value.
Please let me know where i am doing wrong.
#include
#include
#include
#include
#include
#include
#include
struct Operatio…
msgctl(key_t,command,msgid_ds *buf);
This is the snytax. I have not initilized then also the output comes properly for three requesting client. If I increased the client then it will be required to i…
I wanted to change my default Fedora bash shell to ssh (as a superuser).
So, using chsh command gave the address /bin/ssh. Logout the
superuser. But after login as su, I am unable to login and …