Thread: Questions on some definitions

  1. #1

    Question Questions on some definitions

    I wanted to know if anyone could help me out with some definitions i can't figure out in C programming.

    1. What is right justification with respect to printf()

    2. what is the difference between pre-test and post-test in relations to a loop.

    3. What is an abstract data type in C.

    4. What is a module in C.
    5. What is the difference between a syntax error and a logic error.

    Thank you so much for your time.


  2. #2
    Registered User
    Join Date
    Mar 2002
    sounds like we got homework again, i'll tell ya A and a hint to B.
    A) right justification is like when you do:
    it will print the string or whatever the datatype is 20 characters and justify to the left, so if the string is 15 characters it will print 5 spaces then the string

    B) A pre test is what a while statement is, ie
    and a post test is what a do while statement is, ie
    } while(counter<5);
    Basically a pretest will test the condition before it does the loop where as a post test will complete one-cycle of the loop and test the condition. To understand compile and run both the above pieces of code and print the value of counter.

  3. #3
    Thank you Bull for the help. By the way this isn't for homework. I have an exam tomorrow and my professor told us to learn these definitions. The exam is not from our book, it's from a different book so i can't seem to find all the info and i've tried searching the web for these definitions but can't seem to find them. Thanks once again.


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  2. Questions about Templates
    By Shamino in forum C++ Programming
    Replies: 4
    Last Post: 12-18-2005, 12:22 AM
  3. Several Questions, main one is about protected memory
    By Tron 9000 in forum C Programming
    Replies: 3
    Last Post: 06-02-2005, 07:42 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of
    Replies: 23
    Last Post: 12-26-2004, 09:44 AM