gk papers, Headline Animator

click here for




Quick links

Admissions Admit card AIEEE 2011 All about NET andhra bank ap educational news AP Govt jobs ... apnpdcl appsc APPSC-Assistant Executive Engineers APRDC CET APRJC CET apsrtc BARC BEL Best Engineering Colleges BHEL BHEL-Bhopal BITS-Admissions BITSAT 2012 BPCL bsnl Canadian Fellowship canara bank carrier guidance CDS Admit card CEEP 2011 Results CEIL Central Bank of India civils Civils Preliminary Exam Clerks in Central Bank of India CMAT 2012 Coal India Coming Competitive Exams in 2012 complete Details about NEET - 2012 Complete Information CPF AC csir CSMCRI CTET - 2012 Current Affairs Quiz Dena Bank Doctoral Fellow/ Research Associate DRDO eamcet EAMCET 2011 EAMCET 2012 ECET 2011 ecil Edcet 2011 EIL Entrance Test for GSI ese-ies ESIC Exam Reminder FCI Admit Card 2012 Forthcoming Competitive Exam GAIL GATE 2011 GATE 2011 key GATE 2012 GATE 2012 Key GATE 2012 RESULTS GATE 2012 Solutions GATE 2013 GATE 2014 GET at IFFCO GMAT GPAT-2011 GRADUATE TEACHER Gramnin Bank GRE GSAT 2011 HAL HCU Entrance Exam HCU Entrance Exams Hitachi Scholarships icet ICET 2011 ICET-2011 IDBI IFFO iict-Cdac IIIT IIT JAM 2011 IIT-JEE 2011 IIT-JEE 2012 key IITM Fellowship 2011 Important Institutions and its Headquarters In India Indian Bank Indian Oil Indian Overseas Bank indianrailways Inter exams IRCTC ISRO JBIMS jobs JOINT ENTRANCE EXAMINATIONS Karnataka Bank KC Mahindra Scholarships 2011 LAWCET 2011 LIC LIC -AAO Recruitment LIC DSE LIC Golden Jubilee Scholarships manipal MANMOHAN SINGH SCHOLARSHIPS 2011 MDSET-2011 ME-M.Tech-M.Pharmacy Admissions Medvarsity Fellowship NBPPL nbrc nbrc careers nbrc recruitement NET NET 2012 NET Key NHPC NIC NPCIL NTPC NTPC-2011 NTPC-2012 Oriental Bank of India (OBC) Oriental Insurance Company Part Time Management Course PGEC 2011 PGECET 2011 PGECET 2012 PGEE 2011 PGEE 2012 PGMET-2011 PhD in maths and physical sciences PhD-research PNB POWER GRID Pre-medical Entrance Test Professional jobs in WBSETCL Punjab Sind Bank RBI Reliance RITES RRB RRB-NCR RRB-NER rrb-RESULTS RRB-SCR RRB-SRCR RRVUNL SAIL SBI SBI Associate Banks SCRA Section Officer SOP preparation SOUTH INDIAN BANK SSC-NWR various jobs STAFF SELECTION COMMISSION Syndicate Bank TANCA-2012 TET Exam TET Exam key The Indian Navy UC Global Opportunity Scholarship UCO BANK -PO Union Bank United Bank of India UPPSC upsc upsc admit card upsc-CDS upsc-rrb upsc-SCRA WEST BENGAL

Search This Blog

What is New in GATE 2015?

Important Dates


GATE Online Application Processing System (GOAPS) Website Opens:
Enrolment, Application Filling, Application Submission
1st September 2014
(00:00 Hrs)
Last Date for Submission of Online Application through Website
1st October 2014
14th October 2014
(23:59Hrs)
Last Date for Request for Change in the Choice of Examination City via GOAPS login
21st November 2014
Availability of Admit Card on the Online Application Interface for printing
17th December 2014
GATE 2015 Online Examination
Forenoon: 9.00 AM to 12.00 Noon
Afternoon: 2.00 PM to 5.00 PM
31st January, 1st, 7th, 8th and 14th February, 2015
Announcement of Results on the Online Application Website
12th March 2015
(17:00 Hrs)

Friday, June 17, 2011

Top 50 Questions of Basic C programming

 Top 50 Questions of Basic C programming

Here I am discussing top 50 questions of basic C programming asked in the technical interview. Prepare these question before appearing in the interview.

   1. Write a program to print numbers from 1 to 100 without using loops
   2. Write a C program to swap two variables without using a temporary variable.
   3. What is the 8 queens problem? Write a C program to solve it?
   4. Write a C program to print a square matrix helically.
   5. Write a C program to reverse a string.
   6. Write a C program to reverse the words in a sentence in place.
   7. Write a C program generate permutations.
   8. Write a C program for calculating the factorial of a number.
   9. Write a C program to calculate pow(x,n)?
  10. Write a C program which does wildcard pattern matching algorithm.
  11. How do you calculate the maximum sub array of a list of numbers?
  12. How to generate fibonacci numbers? How to find out if a given number is a Fibonacci number or not? Write C programs to do both.
  13. Solve the Rat In A Maze problem using backtracking.
  14. What Little-Endian and Big-Endian? How can I determine whether a machine's byte order is big-endian or little endian? How can we convert from one to another?
  15. Write C code to solve the Tower of Hanoi problem.
  16. Write C code to return a string from a function.
  17. Write a C program which produces its own source code as its output.
  18. Write a C program to convert from decimal to any base (binary, hex, oct etc…).
  19. Write C code to check if an integer is a power of 2 or not in a single line?
  20. Write a C program to find the GCD of two numbers.
  21. Write code to remove duplicates in a sorted array.
  22. Find the maximum of three integers using the ternary operator.
  23. How do you initialize a pointer inside a function?
  24. Write C code to dynamically allocate one, two and three dimensional arrays (using malloc()).
  25. How would you find the size of structure without using sizeof()?
  26. Write a C program to multiply two matrices.
  27. Write a C program to check for palindromes.
  28. Write a C program to convert a decimal number into a binary number.
  29. Write C code to implement the Binary Search algorithm.
  30. Write code to evaluate a polynomial.
  31. Write code to add two polynomials.
  32. Write a program to add two long positive numbers (each represented by linked lists).
  33. How do you compare floating point numbers?
  34. What's a good way to implement complex numbers in C?
  35. How can I display a percentage-done indication on the screen?
  36. Write a program to check if a given year is a leap year or not?
  37. Is there something we can do in C but not in C++?
  38. How to swap the two nibbles in a byte ? How to generate the next prime after a given prime?
  39. How to scan a string till we hit a new line using scanf()?
  40. Write pseudocode to compare versions (like 115.10.1 vs 115.11.5).
  41. How do you get the line numbers in C?
  42. Write your own sqrt() function in C.
  43. Write a simple piece of code to split a string at equal intervals.
  44. Is there a way to multiply matrices in lesser than o(n^3) time complexity?
  45. How do you find out if a machine is 32 bit or 64 bit?
  46. Write a program to have the output go two places at once (to the screen and to a file also).
  47. How can we sum the digits of a given number in single statement?
  48. Given two strings A and B, how would you find out if the characters in B were a subset of the characters in A?
  49. Write a program to merge two arrays in sorted order, so that if an integer is in both the arrays, it gets added into the final array only once.
  50. Write your own trim() or squeeze() function to remove the spaces from a string.

No comments:

Post a Comment