background preloader

Programming Praxis

Programming Praxis

Ruby Quiz C PUZZLES, Some interesting C problems Dear visitor, Thanks for your interest in C programming. In this page, you will find a list of interesting C programming questions/puzzles, These programs listed are the ones which I have received as e-mail forwards from my friends, a few I read in some books, a few from the internet, and a few from my coding experiences in C. Most of the programs are meant to be compiled, run and to be explained for their behaviour. The puzzles/questions can be broadly put into the following categories: General typo errors, which C programmers do often and are very difficult to trace. I have used Gnu/Linux/gcc for all of them. If you are preparing for campus interviews, you might find the following link interesting: Regards,Gowri Kumar The expected output of the following C program is to print the elements in the array. Find out what's going wrong.hint I thought the following program was a perfect C program.

Prolog Problems - PrologSite This is a remake of the P-99: Ninety-Nine Prolog Problems collection that I assembled over several years of teaching at the University of Applied Sciences (Berner Fachhochschule) at Biel-Bienne, Switzerland. The collection is structured into seven sections. I have renumbered the problems in order to get more freedom to rearrange things within the sections. The purpose of this problem collection is to give you the opportunity to practice your skills in logic programming. Your goal should be to find the most elegant solution of the given problems. Efficiency is important, but logical clarity is even more crucial. Every predicate that you write should begin with a comment that describes the predicate in a declarative statement. The problems have different levels of difficulty. You can find solutions of the problems at the end of each section. If you find errors or better solutions, please send mail to: werner.hett(at)email.ch First section: Prolog Lists

Related: