Ans
#include
int main()
{
printf("\" \" \n");
return 0;
}
Key points: \ slash symbol is a sequence break charecter so \ this symbol read as a charecter
Iam inserting a node in the tree, while inserting , after n = 1, no further allocation is being done rather the previously allocated nodes are getting overwritten.
Below is the code:-#include"h…
I'm facing a glibc error in my C program while creating a binary tree. The issue occurs during the allocation of memory for a node in creatNode.c. The error points to malloc.c:2593 and includes …
In the project "Client-Server Communication using IPC and Threads", before the Vendor sends the latest result to the shared memory, the processRequest() function reads the result as if the …
In the LMS Project, after inserting an entry into the Book class, if I am updating the count by moving the offset to the beginning, reading the current count, and then overwriting the updated value o…
In C programming, strcpy() and strncpy() are both functions used for string manipulation, but they have some key differences:
strcpy(destination, source):
Copies the entire source string to the desti…
After implementing thread in server.c to call the process request(), My server is now unable to open process request() . Here is the code reference:while(1) { ret = pthread_cre…
Members of a structure in C have public visibility by default while in C++ they have private visibility by default.
Apart from that, are there any more differences in structure between C and C++? If …
using namespace std;class MyCounter{ private: int count; public: MyCounter(); MyCounter(int); int display(); MyCounter operator++(); // PreFix version …
Q. Is it always necessary that makefile should be saved as by the name "Makefile" in the directory? If try to save it with a different name, throws an error "make: Nothing to be done f…
I declared variable int count as "static" in declarations.h file, Now on creating each Node in a LinkList I am incrementing the value of count in the creatNode() and the incremented count i…
home/ayaz/cdd_01/initFunc.c:8:23: error: conflicting types for ‘fops’; have ‘struct file_operation’ 8 | struct file_operation fops; | ^~~~In file included from /home/aya…
ls: cannot access '*.h,v': No such file or directory
I am not able to understand what causing this error
below is my script
#! /bin/bash
checkIn()
{
for file in $(ls *.h) $(ls…
I was executing a program given in the notes, this was the error that occured:-Below is the code:-#include
using namespace std;
class B{
public:
virtual void m1()
{
cout
I was building my project and these are the errors that occured:-
server.c:-
#include"../Comman/headers.h"
2 #include"../Comman/dataStruct.h"
3 #include"declerations.h&qu…
Sir,
I wanted to ask whatever keywords we are going to have embedded into the ,v files (comma v files) i.e. RCS workfiles , ( hereby referring to two types of files working file and RCS file) i thi…
q4.c:16:1: error: expected ‘,’ or ‘;’ before ‘printf’
16 | printf("sum of a and c is % d+ %c = %d \n",a,c,Ac);
| ^~~~~~
This is the error Iam encountering in my code and this e…
Zombie or Defunct Process
==========================
If a child proces tries to teminate,its association with parent remains until the parent terminates normally or calls wait.
- The child process…
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…
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??
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…
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
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…
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 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…
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 …
Storage class :- In addition to datatypes variable has one or more attribute and that is class.It is of 4 types.
Automatic - When a variable declared inside a function block then by default it is as…
Datatypes - It is use to define type of data. A variable can only be used in program if it is not declared with a datatype.
Datatypes are helpful in determining how much space will it take in memory.…
Orphan Process
===============
If in a process, the parent process is terminated before the child process, the child process become orphan
- It takes the lowest possible process as its parent
- And…
Share the work done or any useful info u come across while learning..it may include info/tips/tricks..DO NOT POST QUERIES..For queries use the query forum..
I installed fedora 20 on my hp laptop .One problem i face after installation .Brightness keys not working..pls any one knows hw to fix this problem pls help m
whenever I run small number of clients let say 100 to 150
kill signal from the server is working fine
(here kill signal is send by the server to the client through the pid of the client process(at …