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 8814
Q:

Who is the author of the controversial book 'Forbidden verses'

A) Abu nuwaz B) Salman Rushdie
C) D.H.Lawrence D) Ms. Taslima Nasreen
 
Answer & Explanation Answer: A) Abu nuwaz

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

10 8805
Q:

In archery, what shape is the target

A) Squar B) Round
C) Triangular D) Rectangular
 
Answer & Explanation Answer: B) Round

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

17 8804
Q:

The more you take, the more you leave behind. What is that?

A) Pictures B) Hole
C) Clothes D) Footsteps
 
Answer & Explanation Answer: D) Footsteps

Explanation:

Yes, footsteps are what we take more, the more we leave behind. 

Report Error

View Answer Report Error Discuss

9 8802
Q:

Sandalwood is largely found in

A) India B) Japan
C) China D) Nepal
 
Answer & Explanation Answer: A) India

Explanation:

Sandalwood is largely found in India and they are government owned and their harvest is controlled.

 

Naturally grown sandalwood can be easily found in Karnataka, Tamilnadu, Andhra, Kerala, Gujarat, Madhya Pradesh, and U.P. Manipura and in some other states of India.

Report Error

View Answer Report Error Discuss

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

12 8800
Q:

What symbol is used to enter number as text?

A) = B) "
C) ' D) _
 
Answer & Explanation Answer: C) '

Explanation:

Apostrophe(‘) symbol is used before a number to make it a text or label.

Report Error

View Answer Report Error Discuss

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

26 8798
Q:

Who wrote the book 'Rama Charita Manas '

A) Tulsi Das B) Bhakta Kabir
C) Bhakta Ramdev D) Valmiki
 
Answer & Explanation Answer: A) Tulsi Das

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

14 8795
Q:

A(n) .......... is a small group of computers and peripherals linked together in a small geographic area. 

A) WAN B) PAN
C) LAN D) CAN
 
Answer & Explanation Answer: C) LAN

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer

18 8793