Programming and Webmasters forum
HomeSearchRecent PostsLoginRegister Contact Us

Username  
Password
Announcing 14th Weekly Contest - From 25 July To 01 August.

Win every week on this forum.

Chek out How To Win?
 

Pages: [1]   Go Down
 
  Email this topic  |  Print
0 Members and 1 Guest are viewing this topic.

Frequently asked C questions - C FAQs

 
webmaster forum
Admin  Offline
*
 
Hacker
Location: India
Gender: Male
Posts: 1101
Topics: 94
Technical_Talk
WWW
December 13, 2008, 05:58:21 AM

Here we are trying to collect all the frequently asked questions on basic C programming language. The questions and answers listed in this thread are collected from regular posts by our forum member. You can use them in your interview also. We will try to update this thread regularly, and we are also open for your suggestions.

You may find solution to your programming problem/question in this thread; therefore go through this thread carefully if this is your first visit to the forum in search of some solution.

« Last Edit: December 14, 2008, 09:10:37 AM by Admin »

Watch out for the latest Weekly Contests | Contest Rules
A Game - Say "Hello"
We are looking for Global Moderator
 
webmaster forum
polas  Offline
*
 
Hacker
Gender: Male
Posts: 1224
Topics: 78
WWW
December 15, 2008, 05:13:55 AM

I think operator precedence and associativity is always a favourite one, for instance (without using running it),

int c=55;
int d=823;
int a=++d * c + 99 - 72++

Whats a? - This is just one I have thrown together, but its an illustration of how important it is to know this when writing code - or else you will get bogged down in parenthesis.

Or, heres another one, quite a common newbie missunderstanding,  - why does the following code not work.

#include <stdio.h>
char * myfunction();
int main()
{
 char * data=myfunction();
printf("%c\n",data[1]);
return 0;
}

char * myfunction()
{
  char myarray[]={'h','e','l','l','o'};
  return myarray;
}
« Last Edit: December 15, 2008, 05:40:43 AM by polas »

Mesham Type Oriented Parallel Programming Language
Skydive in North East England
 
webmaster forum
vijay12  Offline
Contest Points: 100
 
Regular Coder
Posts: 67
Topics: 33
January 01, 2009, 09:57:46 PM

the questions frequently asked in c are,
1.structure of C program.
2.operators in C
3.explain functions, variables, arrays etc., with syntax.
4.what is a compiler.
 
  Email this topic  |  Print
Pages: [1]   Go Up
 
Jump to:  



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC


Google visited last this page July 24, 2010, 06:30:49 PM

Valid XHTML 1.0 Transitional     Valid XHTML 1.0 Transitional