C4Swimmers Newsletter  

All

Related to All OS or Portable to all OS

Buffer overflow c/c++

Hello,
how can I find a buffer overflow in C/C++.

For example:

int x[10];
int y[5][5];
int z[5][5][2];

x[12] = 0;
y[3][7] = 8;
z[2][6][1] = 8;

Is there any tool or good compiler to solve this problem?

Thanks

programming problem regarding room capacity

Write at least 5 sentences stating your reason that the programming problem regarding room capacity should incorporate a condition to be able to obtain the required output. If you think that this problem will be solved without a condition, kindly write the equivalent source code.

Below is the sample run for the said programming problem:
Enter room capacity: 45
Enter actual class size: 40
Available seat/s: 5
Excess head count: 0

*******************
Enter room capacity: 40
Enter actual class size: 45
Available seat/s: 0
Excess head count: 5

C++ Developer Trends & Job Wage Stats from USA, India, Russia..

Anyone interested to know the average wages and job growth (as well as demand for C++ programmers) can find some of the most up to date info at C++ Developer & Engineer Job Stats: USA, India, RussiaHope this helps those who are wondering what to charge their clients, and how much demand for C developers is growing.. despite what some may say about our "niche language."

TUTORIALS

  • (TUTORIAL) C++ Programming Language Tutorials

  • (Tutorial) Managed DirectX C# Graphics Tutorial 1: Getting Started

  • (Tutorial) Defining and Overloading Operators in C++

  • (Tutorial) C-Jump Boardgame: Learn C, C++ and Java in a fun yet educational way

  • (Tutorial) C++ Standard Library, A Tutorial and Reference

  • (Tutorial) C, C++, and Java Programming Training

  • (Tutorial) Learn ASP.NET 2.0 - A "From the Ground Up" Tutorial (Part -1)

  • (Tutorial) Learn ASP.NET 2.0 - A "From the Ground Up" Tutorial (Part-2)

  • (Tutorial) Learn ASP.NET 2.0 - A "From the Ground Up" Tutorial (Part-3)

  • (Tutorial) Learn ASP.NET 2.0 - A "From the Ground Up" Tutorial (Part-4)

  • (Tutorial) Introducing cfix, a unit testing framework for C/C++ on Win32

  • (Tutorial) Crashproof C++ Language

  • (Tutorial) Introduction to Python - Part 1

  • (Tutorial) C++ Language Reference (All)

  • (Tutorial) ELATE - Extensible Logger And TracEr

  • (Tutorial) Excellent Collection of C/C++ tuorials

  • (Tutorial) Learning OO/C++

  • (Tutorial) The Anatomy of a C++ Program

  • (Tutorial) C++ Coder’s Newbie Guide to Lisp-style OOPS

  • (TUTORIAL) Introduction to Python 3

  • (TUTORIAL) C-C++ books and tutorial

  • (TUTORIAL) Introduction to Object-Oriented Programming Using C++

  • (TUTORIAL) Introduction to computer programming

  • (TUTORIAL) Getting Started with ASP.NET Ajax

  • (TUTORIAL) Getting Started with ASP.NET Ajax

  • (TUTORIAL) Introducing the .NET Platform

  • (TUTORIAL) C++ Programming

  • (Tutorial) Extreme Programming Explored

  • (Tutorial) STRUCTURED QUERY LANGUAGE (SQL)

  • (Tutorial) C# Tutorial

  • (Tutorial) Using the C/C++ Tool Collection Descriptor

  • (Tutorial) C/C++ Remote Development

  • (Tutorial) Debugging C/C++ Projects Tutorial

  • (Tutorial) Lecture Series on Internet Technologies (TCP/IP)

  • (Tutorial) Functional Programming in C# 3.0 using Lambda Expression - Part 1

  • (Tutorial) Debugging C++ Code from Java Application By Gregory Shpitalnik

  • (Tutorial) C++ Implementation of the C# Property and Indexer with Accessor-Modifiers

  • (Tutorial) The Building of a Knowledge Base Using C++ and an Introduction to the Power of Predicate Calculus

  • (Tutorial) A C# tiny fireworks simulator

  • (Tutorial) Fast native structure reading in C# using dynamic assemblies

  • (Tutorial) Straight way to Create ASP.NET user controls library

  • (Tutorial) SQL Server CE Query Tool

  • (Tutorial) Writing a C++ Program with the CAPICOM Component to Encrypt and Decrypt Files

  • (Tutorial) Operator Overloading (C++ The Overloading Principle)

  • (Tutorial) Managing Database Operations Using ADO And C++

  • (Tutorial) Using Multiple Inheritance in C++

  • (Tutorial) Csharp (C#) Tutorial

  • (Tutorial) VB.NET Tutorial | Customize user controls and object methods

  • Job Opening: QA Manager - Software Testing

    Dear c4swimmers,

    We have some urgent requirements with our Client in India.

    About Client: It’s a Fortune 25 top Software MNC with Multiple offices across USA, UK and India.
    Current open requirements are for INDIA office.

    If you feel you are fitting to any of position below send your updated resume, and contact details to swiftsol.consultant@gmail.com

    Position: Manager – Quality Engineering

    Job Experience: 8 - 15 yrs in software QE
    Job Function: Lead Quality Assurance Team
    Location: Northern Part of India

    C pgming

    hai!
    i am always ready to help u with my source
    all the best

    (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:

    TOP NOTCH COMPANIES IN INDIA

    Hi Guys,
    Here we do have good
    challenging job openings with the various top notch IT companies for 4+ yrs of Experience Candidates.

    The companies include
    *YAHOO
    *AMAZON
    *JUNIPER NETWORKS
    *GOOGLE
    *MICROSOFT

    Kindly revert to me with your updated profile and you can also write to me
    for any further Queries @

    catchmeera@gmail.com

    Regards
    Meera

    (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

    (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

    (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 .

    Decimal to Binary conversion