Skip to content

Gyan Today

Knowledge point

  • Home
  • Upcoming Jobs
  • Current Affairs
  • Exam Results
  • Tutorials
    • Programming
      • C Tutorial
  • Interview Question
    • Tricky C programming questions
    • Most Important Interview Questions In C
    • Operating System FAQ
      • OS Questions Set 1
    • Core Java Interview Questions
    • Software Tools FAQ
    • Linux Interview Questions
    • IPC FAQ
      • IPC Questions Set 1
    • Hadoop interview questions
    • LTE FAQ
      • LTE – Channels
      • LTE Questions Part 1
      • LTE Questions Part 2
      • LTE Questions Set 3
    • Python Interview Questions
      • Python Interview Questions set 1
      • Python Interview Questions set 2
      • Python Interview Questions set 3
    • Ruby Interview Questions
      • Ruby Interview Questions part 1
      • Ruby Interview Questions set 2
    • General Questions

Tag: C questions

C questions for exam preparation, campus interview preparation and C skills/knowledge build up.

Q40 Write a C program to count number of bits set in an integer.

July 17, 2015 Gyantoday Most Important Interview Questions In C Leave a comment

The simplest way is, use bitwise ‘&’ operator on each bit of number by shifting right one by one and

Continue reading

Q39 How to check a particular bit is set or not? Write a program to count number of bits set in an integer.

July 16, 2015 Gyantoday Most Important Interview Questions In C Leave a comment

There are many methods to check a particular bit is set or not. Method 1: Suppose I want to check

Continue reading

Q38 What is storage class and its type?

July 16, 2015 Gyantoday Most Important Interview Questions In C Leave a comment

To know the answer please click on this link C Storage class.

Continue reading

Q37 How will you determine a machine is 32 bit or 64 bit?

July 16, 2015 Gyantoday Most Important Interview Questions In C Leave a comment

All compiler keep the size of integer the same as the size of register on a particular architecture. So the

Continue reading

Q36 Is float a = 22/7 and double b = 22/7 is equal? How to compare floating point numbers?

July 15, 2015 Gyantoday Most Important Interview Questions In C Leave a comment

if(a == b) may be true or may not be, that’s because of the way floating point numbers are stored.

Continue reading

Q35 How little endian and big endian machine communicate to each other?

July 15, 2015 Gyantoday Most Important Interview Questions In C Leave a comment
Continue reading

Q34 Write a program to convert from one Endian to another.

July 15, 2015 Gyantoday Most Important Interview Questions In C Leave a comment

int endian_reverse_fun(int num) { int byte0, byte1, byte2, byte3; byte0 = (num & x000000FF) >> 0 ; byte1 = (num

Continue reading

Q33 What is little endian and big endian? How to check a system is little endian or big endian?

July 14, 2015 Gyantoday Most Important Interview Questions In C Leave a comment

Little and big endian are method of storing data in machine. Little Endian means that the lower order byte of

Continue reading

Q32 What is meaning of error that shows lvalue required?

July 14, 2015 Gyantoday Most Important Interview Questions In C Leave a comment

An lvalue is something that can appear on the left side of an assignment, in other words something that can

Continue reading

Q30 When sizeof() operator works, compile time or run time?

July 13, 2015 Gyantoday Most Important Interview Questions In C Leave a comment

sizeof() is a compile time operator. It works at compile time that’s why we called it operator not function. To

Continue reading

Q29 Write your own code to generate random number.

July 13, 2015 Gyantoday Most Important Interview Questions In C Leave a comment
Continue reading

Q28 How to check that the stack grows up or down?

July 13, 2015 Gyantoday Most Important Interview Questions In C Leave a comment

To check stack grows up or down take two local variable and check their address. If (address of variable 1

Continue reading

Q27 Write a C program to round numbers.

July 12, 2015 Gyantoday Most Important Interview Questions In C Leave a comment

Use this statement to round numbers (int)(number < 0 ? (number – 0.5) : (number + 0.5))

Continue reading

Q26 Write a C program to check leap year.

July 12, 2015 Gyantoday Most Important Interview Questions In C Leave a comment

#include<stdio.h> int main() {         int year;         printf(“Enter any year to check leap year\n”);         scanf(“%d”,&year);         if((year %

Continue reading

Posts pagination

«Previous Posts 1 … 3 4 5 6 Next Posts»

Recent Posts

  • Born today Famous People’s Birthdays 1st September 01/09 in India and world
  • Born today Famous People’s Birthdays 31st August 31/08 in India and world
  • Born today Famous People’s Birthdays 30th August 30/08 in India and world
  • Born today Famous People’s Birthdays 29th August 29/08 in India and world
  • Born today Famous People’s Birthdays 28th August 28/08 in India and world

Recent Comments

  • Gyantoday on Born today Famous People’s Birthdays 27th August 27/08 in India and world
  • PAUL on Q58 What is constant expression required error in array?
  • Ganesh on User defined function of strcmp()
  • Abrar Alam Khan on Born today Famous People’s Birthdays 27th August 27/08 in India and world
  • Avinash singh on Q43 Write a C program to reverse odd bits or even bits of an integer.

Archives

  • August 2017
  • August 2016
  • July 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • January 2015

Categories

  • Android
  • Cell Phones
  • Core Java Interview Questions
  • Current Affairs
  • Exam Results
  • General Questions
  • Hadoop interview questions
  • IPC FAQ
  • IPC Questions Set 1
  • Jobs Today
  • Linux
  • Linux Interview Questions
  • LTE – Channels
  • LTE FAQ
  • LTE Questions Part 1
  • LTE Questions Part 2
  • LTE Questions Set 3
  • Mac OS
  • Most Important Interview Questions In C
  • News
  • Operating System FAQ
  • OS
  • OS Questions Set 1
  • Others
  • Python Interview Questions
  • Python Interview Questions set 1
  • Python Interview Questions set 2
  • Python Interview Questions set 3
  • Ruby Interview Questions
  • Ruby Interview Questions part 1
  • Ruby Interview Questions set 2
  • Science
  • Sports News
  • Today's Birthday
  • Tricky C programming questions
  • Upcoming Exams and Dates
  • Windows
  • XAMPP

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
WordPress Theme: Tortuga by ThemeZee.