Interview

Interview Questions & Resources.

[JOB] Strong programming experience with C/C++ on UNIX - Opening at Sun Microsystems India, Bangalore

Job Summary
The Sun Communications Suite delivers industry-leading email, calendaring and real-time collaboration functionality for service providers and large organizations worldwide. This suite includes the Messaging Server, Calendar Server, Instant Messaging, Connector for Microsoft Outlook, Synctool and Communications Express.

The Sustaining Engineering team is seeking a talented, creative, highly-motivated Software Engineer to develop and sustain Messaging Server and Calendar Server products.

Job Description
Responsibilities:

Never mix malloc with delete OR new with free

Never mix malloc with delete OR new with free as the outcome will be undefined behavior. It is not a good programming practice.

Let's look at the two undefined behavior due to the mixed usage of malloc with delete OR new with free and learn how to overcome it:

* malloc with delete (attached mallocdel.cpp) - In this case, memory is allocated with malloc and it is freed using delete or delete[].

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

Reading from a dangling pointer

/*
 * File: readdangling.c
 */
#include<stdio.h>
#include<stdlib.h>
int main()
{
  char str;
  char *strptr = (char *) malloc(10 * sizeof(char));
  free(strptr);
  str = *strptr;
  return 0;
}

Note: The problem with this code snippet occurs when an attempt is made to dereference a pointer that points to a block of memory that has been freed. This type of problem is commonly known as "Reading from a dangling pointer".

Solution: Ensure that the pointer you are using should really be pointing to an allocated block at the indicated place.

Syndicate content