Questions

Q:

Undefined reference to 'pthread_create'

How to Fix this error?

Answer

This is a common error while compiling C program in Linux. This error occurs when you are using pthread_create function to create threads in your programs.


To fix this problem ensure following points:
Include header file pthread.h in your program.
Add –lpthread linker flag with compilation command.
1- Include Header file
#include <stdio.h>
#include <pthread.h>
...
...
2- Compile command
gcc main.c -o main -lpthread

Report Error

View answer Workspace Report Error Discuss

24 5830
Q:

Social Rights will not include _____ of the following?

A) Adivasi B) Women
C) Care for Political Section D) Children
 
Answer & Explanation Answer: C) Care for Political Section

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

24 5830
Q:

What is the structural unit of compact bone?

A) Osteon B) Spongy bone
C) Lamellae D) Periosteum
 
Answer & Explanation Answer: A) Osteon

Explanation:

what_is_the_structural_unit_of_compact_bone1536568861.jpg image

 

The structural unit of compact bone is Osteons or Haverisan systems.

 

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

0 5829
Q:

In computer network nodes are

A) the computer that terminates the data B) the computer that originates the data
C) the computer that routes the data D) all of the mentioned
 
Answer & Explanation Answer: D) all of the mentioned

Explanation:

In computer network nodes are

* the computer that terminates the data

* the computer that originates the data

* the computer that routes the data

Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

7 5825
Q:

Ravi, Rohan and Rajesh alone can complete a work in 10, 12 and 15 days respectively. In how many days can the work be completed, if all three work together?

A) 4 days B) 5 days
C) 3 days D) 8 days
 
Answer & Explanation Answer: A) 4 days

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

52 5825
Q:

Narmada originates from its source situated in the state of

A) Maharashtra B) Uttar Pradesh
C) Madhya Pradesh D) Andhra Pradesh
 
Answer & Explanation Answer: C) Madhya Pradesh

Explanation:

Narmada rises near Amarkantak

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

4 5824
Q:

The benefits of object-oriented modeling are which of the following?

A) The ability to tackle more challenging problems B) Reusability of analysis, design, and programming results
C) Improved communication between users, analysts, etc. D) All of the above.
 
Answer & Explanation Answer: D) All of the above.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

5 5822
Q:

Which is the first Indian company to be listed on NASDAQ ?

A) Reliance B) TCS
C) HCL D) Infosys
 
Answer & Explanation Answer: D) Infosys

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams
Job Role: Bank PO

12 5822