C4Swimmers Newsletter  

administrator's blog

Blog story about C4Swimmers published at Official Yahoo! India Groups Blog

Hi all

Good news to share :-)

Recently I've been interviewed by the Yahoo! India Groups Community Manager Shefali to publish a short story about my group C4Swimmers (a.k.a C For Swimmers - Discover the depth of C).

Blog story about C4Swimmers published @ Official Yahoo! India Groups Blog : http://www.ygroupsblog.in/blog/2009/01/13/c-for-swimmers/
Yahoo! India Groups Blog : http://www.ygroupsblog.in

(LINKS) C, C++ Tutorials, FAQs, and Helpful Articles.

(LINKS) C, C++ Tutorials, FAQs, and Helpful Articles.

(FAQ) FREQUENTLY ASKED PROGRAMS IN C, C++

FREQUENTLY ASKED PROGRAMS(FAQs) IN C, C++

 1. Program to convert upper case to lower case or lower case to upper case .

 2. Program to count no. of characters,no. of blanks,no. of words & no. of lines in a multi line string

 3. Program  to correct rudimentary syntax errors.

 4Program to encrypt & decrypt a given string.

 5. Program for Drop Down in C

 6. Program for finding the prime numbers

 7. Program for finding the sum of digits of a five digit number

 8. Program for Prime Number Generation

 9. Program to calculate frequency of vowels in a string

 10.Program to calculate the sum of series

 11.Program to calculate the Typing Speed

 12.Program to copy its input to its output replacing string of one or more blanks by a single blank.

 13.Program to display all vowels in a i/p line of text

 14.Program to find the type of the triangle made by i/p values of its coordinates of its vertices

 15.Program to find wheather a given year is leap year or not.

 16.Program to Multiply Two Matrices

 17.Program to reverse the input string

 18.Program. to find & replace any desired character from the input text

 19.Prg. to sort any no. of numeral i/p in ascending or descending order

 20.Prg. to find the existence & frequency of an i/p substring in a main string

(Puzzles) Interesting C Programing Problems

Interesting C Programing Problems (Level- Intermediate to Advance)


The following C program segfaults of IA-64, but works fine on IA-32.
1  int main()
2  {
3      int* p;
4      p = (int*)malloc(sizeof(int));
5      *p = 10;
6      return 0;
7  }
Why does it happen so?
The expected output of the following C program is to print the elements in the array. But when actually run, it doesn't do so.
 1  #include<stdio.h>
 2
 3  #define TOTAL_ELEMENTS (sizeof(array) / sizeof(array[0]))
 4  int array[] = {23,34,12,17,204,99,16};
 5
 6  int main()
 7  {
 8      int d;
 9
10      for(d=-1;d <= (TOTAL_ELEMENTS-2);d++)
11          printf("%d\n",array[d+1]);
12
13      return 0;
14  }
Find out what's going wrong.
The following program doesn't "seem" to print "hello-out". (Try executing it)
 1  #include <stdio.h>
 2  #include <unistd.h>
 3  int main()
 4  {
 5          while(1)
 6          {
 7                  fprintf(stdout,"hello-out");
 8                  fprintf(stderr,"hello-err");
 9                  sleep(1);
10          }
11          return 0;
12  }
What could be the reason?
 1  #include <stdio.h>
 2  #define f(a,b) a##b
 3  #define g(a)   #a
 4  #define h(a) g(a)
 5
 6  int main()
 7  {
 8          printf("%s\n",h(f(1,2)));
 9          printf("%s\n",g(f(1,2)));
10          return 0;
11  }
Just by looking at the program one "might" expect the output to be, the same for both the printf statements. But on running the program you get it as:

(FREE BOOK) Free AJAX Book @ Sun Developer Network

(FREE BOOK) Free AJAX Book @ Sun Developer Network



http://sunevents.idealake.com/registration.jsp


join SDN now!


http://developers.sun.com/index.html

(QUESTIONS) ANSWER THIS:: C, C++ Questions

ANSWER THIS:: C,C++ Questions

1)Which is faster and why
for(i=0;i<1000;i++) or for(i=1000;i>=0;i--)

2)how can we include other than a .h using #include

3)which is faster and why

fun(typedef struct a X) or fun(typedef struct a *pX)

4)how can we print "HELLO WORLD" with out using semicolon

5) what is the purpose of volatile modeifier

6) how can we avoid multiple enteries of files included by #include

6)why is enum is better compared to #define constant

(TEST / QUIZ) A 'C' Test : The 0x10 Best Questions for Would-be Embedded Programmers

nt face="Verdana, Georgia, Arial, Sans-Serif" size="2">

A 'C' Test: The 0x10 Best Questions for Would-be Embedded Programmers

Nigel Jones

Pencils up, everyone. Here's a test to identify potential embedded programmers or embedded programmers with potential

(FEEDBACK) POST Your Portal Comments Here.

in

(FEEDBACK) POST Your Portal Comments Here.

hi all,

we are improving our portal and forum services, day by day..

please post your comments here, to serve you better.

your active participation will Help us ALL.

thank you.
--
webmaster & Team

(TIPS & TRICKS) C++ Pitfalls, by: Cay S. Horstmann

C++ Pitfalls, by: Cay S. Horstmann

C++ Pitfalls with Source Code EXAMPLES

What is a pitfall?
Constructor pitfalls
Destructor pitfalls
Stream pitfalls
Overloading pitfalls
Exception pitfalls
Container pitfalls


Click on the link to see the Article...

Courtesy:
http://www.horstmann.com/cpp/pitfalls.html

(TUTORIAL) C++ Programming Language Tutorials

C++ Programming Language Tutorials

Lectures Handouts

1. Overview of the C-portions of C++ (e.g., loops, structs, arrays, basic data types, etc.)

2. A quick tour through C++, focusing primarily on classes, templates, inheritance, and dynamic binding.

3. An extensive tour through C++ language features, illustrating the major and minor differences compared with C.

4. An in-depth look at defining abstract data types in C++, focusing primarily on classes, templates, and exception handling.

5. An in-depth look at C++ single and multiple inheritance.

Tech Talk About C++ and C : Extensive C++ and C FAQ

Tech Talk About C++ and C : Extensive C++ and C FAQ

Discuss related issues in give link..
1. What book do you recommend?
2. Where is the FAQ for the various C and C++ newsgroups?
3. Can I really get the C++ Standard electronically for $18?
4. Can I get Standard C electronically too?
5. What's wrong with code that uses void main()?
6. What about returning from main()?
7. Where does the int returned from main() go?
8. What's the difference between endl and '\n'?
9. Why can't I fflush(stdin), or any input stream??
10. How do I remove all chars from a stream??

(INTERVIEW) An interview with Bjarne Stroustrup

An interview with Bjarne Stroustrup

An interview with Bjarne Stroustrup
— In this interview, Bjarne Stroustrup, the creator of C++, talks about the object-oriented revolution, the rigors of real-world software development, the continuing divergence of C and C++, and some additions to the C++ standard that he'd like to see. (2,000 words)

http://linux.sys-con.com/read/32929.htm

Other Interview Links:

http://www.eptacom.net/pubblicazioni/pub_eng/stroustr.html

(FAQ) UNIX Concepts Questions

UNIX Concepts Questions

SECTION - I
FILE MANAGEMENT IN UNIX

1. How are devices represented in UNIX?
All devices are represented by files called special files that are located in/dev directory. Thus, device files and other files are named and accessed in the same way. A 'regular file' is just an ordinary data file in the disk. A 'block special file' represents a device with characteristics similar to a disk (data transfer in terms of blocks). A 'character special file' represents a device with characteristics similar to a keyboard (data transfer is by stream of bits in sequential order).

(FAQ) Operating System (OS) Interview FAQ Questions.

Operating System (OS) Interview FAQ Questions.

1. What is MUTEX ?
2. What isthe difference between a ‘thread’ and a ‘process’?
3. What is INODE?
4. Explain the working of Virtual Memory.
5. How does Windows NT supports Multitasking?
6. Explain the Unix Kernel.
7. What is Concurrency? Expain with example Deadlock and Starvation.
8. What are your solution strategies for “Dining Philosophers Problem” ?
9. Explain Memory Partitioning, Paging, Segmentation.
10. Explain Scheduling.
11. Operating System Security.
12. What is Semaphore?
13. Explain the following file systems : NTFS, Macintosh(HPFS), FAT .

(Reference) A Handy Tutorial on Bash Unix shell

A Handy tutorial on Bash Unix shell

A short intro about Bash and Most commonly used Bash commands

  • Bash is the shell, or command language interpreter, for the GNU operating system. The name is an acronym for the 'Bourne-Again SHell'.

Syndicate content